POST http://127.0.0.1:5000/post 400 (BAD REQUEST)
时间: 2023-08-10 13:03:07 浏览: 165
FTP-document.rar_fit//127.0.0.1:5050_ftb 127.0.0.1 2121_ftb:127.
回答: 根据你提供的引用内容,报错信息"POST http://127.0.0.1:3000/login net::ERR_CONNECTION_RESET"表明在发送post请求时,服务器端的接口/login拒绝连接。\[1\]而在你的代码中,也有一个错误,即在发送请求时,服务器端连接断开了,因为代码中的results未定义。\[3\]为了解决这个问题,你可以检查服务器端的接口是否正确配置,并确保在发送post请求时,参数正确地添加到请求体中。\[2\]此外,你还需要修改代码中的错误,将results改为res,以确保结果正确返回给客户端。这样,你就可以解决"POST http://127.0.0.1:5000/post 400 (BAD REQUEST)"的问题了。
#### 引用[.reference_title]
- *1* *3* [POST http://127.0.0.1:3000/login net::ERR_CONNECTION_RESE](https://blog.csdn.net/Janner668/article/details/114929736)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [POST http://localhost:8080/XXX/XXX 400 (Bad Request)](https://blog.csdn.net/m0_56044033/article/details/128685071)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文