POST 方法使用 ReactNative 返回 400 错误代码

问题描述 投票:0回答:0

我以前在这里发现过这个问题,但是没有一个解决方案对我有用.. 所以在反应本机应用程序中,我必须发布一个图像文件,然后显示预测结果 如下:

        "age": integer,
        "gender": string


postman result json但是当在本地反应时它返回

**AxiosError: Request failed with status code 400**
error这是与axios相关的代码:code1code2code3

react-native post axios http-status-code-400
© www.soinside.com 2019 - 2024. All rights reserved.