我试图在邮递员或谷歌浏览器上调用我的api flask,而我总是这样:
邮递员:
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.
答案 0 :(得分:0)
这似乎是Flask服务器出现问题,或者与身份验证方法或请求中的数据丢失有关。
您可以做的是使用Postman Console调试对服务器的传出请求。 您可以找到的是:
您还可以在烧瓶服务器中放置print
语句,以查看是否正在调用端点(如果是本地服务器)。