gpt4 book ai didi

python - 当我使用 App Engine SDK 在本地主机中部署我的谷歌云端点 python 应用程序时出错

转载 作者:太空狗 更新时间:2023-10-29 23:57:59 25 4
gpt4 key购买 nike

我使用谷歌云端点配置作为

https://cloud.google.com/appengine/docs/python/endpoints/test_deploy

确切地说,我用 flag 运行 google chrome

--user-data-dir=temp --unsafely-treat-insecure-origin-as-secure=http://localhost:8080

作为

https://developers.google.com/explorer-help/#hitting_local_api

然后,谷歌浏览器说我

You are using an unsupported command-line (--unsafely-treat-insecure-origin-as-secure) flag. Stability and security will suffer

如果我访问

_http://localhost:8080/_ah/api/explorer

然后我得到错误:

The API you are exploring is hosted over HTTP, which can cause problems. Learn how to use Explorer with a local HTTP API .

我尝试将 --test-type 标记添加为

_http://stackoverflow.com/questions/32042187/chrome-error-you-are-using-an-unsupported-command-line-flag-ignore-certifcat

然后谷歌浏览器什么都不说,但是当我访问

_http://localhost:8080/_ah/api/explorer

我得到了同样的错误。

除了端点部分,我的应用程序在 localhost 中运行良好,并且在 appspot.com 中一切正常(端点也是)

我使用的是最新版本:

  • python 2.7.11
  • 应用引擎 SDK 1.9.35
  • 谷歌浏览器 49.0.2623.110

谢谢你,对不起我的英语

最佳答案

  1. 点击 Chrome 网址栏中的屏蔽按钮。

Chrome Google Cloud Endpoints API Explorer: load scripts

  1. 点击“加载不安全的脚本”。
  2. 点击服务(在左侧栏中)以重新加载页面。

关于python - 当我使用 App Engine SDK 在本地主机中部署我的谷歌云端点 python 应用程序时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36497816/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com