我想从nestjs调用https://www.one-dc.com/ao/上的一个端点。我目前收到错误消息:data 13 - XML标签应该在POST变量“data”中给出
const { data } = await firstValueFrom(
this.httpService
.post(process.env.EDC_ORDER_URL, { data: xmlOutput })
.pipe(
catchError((error: AxiosError) => {
this.logger.log('Axios error')
this.logger.error(error.response.data);
throw 'An error happened!';
}),
),
);
console.log(data);
响应来自
1条答案
按热度按时间rjjhvcjd1#
我使用以下方法解决了这个问题: