使用App Engine SDK在本地主机上部署我的Google云端点Python应用程序时出错 [英] Error when I am deploying my google cloud endpoints python application in localhost with App Engine SDK

查看:177
本文介绍了使用App Engine SDK在本地主机上部署我的Google云端点Python应用程序时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用google云端点配置作为


  1. 点击加载不安全脚本。

  2. 点击服务(在左栏)重新加载页面。


I use the google cloud endpoints configuration as

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

exactly, I run google chrome with flag

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

as

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

then, Google Chrome say me

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

If I visit

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

then I get the error:

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

I try to add --test-type flag as

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

then google chrome dont say anything, but when I visit

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

I get the same error.

my app works fine in localhost except the endpoints part, and all works fine in appspot.com (endpoints too)

I use the last version of:

  • Python 2.7.11
  • App Engine SDK 1.9.35
  • Google Chrome 49.0.2623.110

thank you and sorry for my english

解决方案

  1. Click the shield button in Chrome's url bar.

  1. Click "Load unsafe scripts".
  2. Click services (on the left bar) to reload the page.

这篇关于使用App Engine SDK在本地主机上部署我的Google云端点Python应用程序时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆