【发布时间】:2017-10-28 13:38:54
【问题描述】:
我在 Google App Engine(标准)上部署了一个 Django 应用程序,如果我通过浏览器(任何)访问它,它就可以正常工作。但是,我无法在终端上使用 curl 或使用 Postman 应用程序运行任何测试。当我尝试运行 curl 时,它会超时:
curl --verbose -X GET "https://SERVER.appspot.com"
Note: Unnecessary use of -X or --request, GET is already inferred.
* Rebuilt URL to: https://SERVER.appspot.com/
* Trying x.x.x.x...
* TCP_NODELAY set
* Connected to SERVER.appspot.com (x.x.x.x) port 443 (#0)
* Operation timed out after 300225 milliseconds with 0 out of 0 bytes received
* Curl_http_done: called premature == 1
* Closing connection 0
curl: (28) Operation timed out after 300225 milliseconds with 0 out of 0 bytes received
知道我做错了什么吗?同一个应用程序在本地运行良好,我可以在其上运行 Postman / curl。如果我用http:// 而不是https:// 尝试相同的方法(即curl 或Postman),它工作得很好(但https:// 在使用浏览器时工作)。
我需要做什么才能让它从终端工作?
【问题讨论】:
-
日志是空白的,好像这些请求没有通过
标签: google-app-engine curl postman google-app-engine-python