如何解决“无法获得任何回应”?

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

我正试图在邮递员或Google chrome上调用我的api烧瓶,而我总是这样:邮递员:

Could not get any response
There was an error connecting to 192.168.1.178:5000/.
Why this might have happened:
The server couldn't send a response:
Ensure that the backend is working properly
Self-signed SSL certificates are being blocked:
Fix this by turning off 'SSL certificate verification' in Settings > General
Proxy configured incorrectly
Ensure that proxy is configured correctly in Settings > Proxy
Request timeout:
Change request timeout in Settings > General

Google chrome

Ce site est inaccessible
192.168.1.178 a mis trop de temps à répondre.
flask postman
1个回答
0
投票

这似乎是Flask服务器出现问题,或者与身份验证方法有关,或者请求中的数据丢失。

您可以使用Postman Console调试对服务器的传出请求。您可以寻找的是:

  • 检查请求的URL(在您的情况下,我认为这是一个IP地址)
  • 检查请求方法,例如'GET','POST'-您可能使用错误的方法来调用请求。
  • 检查身份验证方法和凭据
  • 检查请求正文和标题。
  • 依此类推..确保您满足完整请求的所有要求。

您还可以在烧瓶服务器中放置print语句,并查看是否正在调用端点(如果它是本地服务器)。

© www.soinside.com 2019 - 2024. All rights reserved.