Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error when I am deploying my google cloud endpoints python application in localhost with App Engine SDK

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

like image 886
Juan Carlos García Sigüenza Avatar asked Apr 08 '16 10:04

Juan Carlos García Sigüenza


2 Answers

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

Chrome Google Cloud Endpoints API Explorer: load scripts

  1. Click "Load unsafe scripts".
  2. Click services (on the left bar) to reload the page.
like image 102
Alex Avatar answered Oct 05 '22 23:10

Alex


I tried troubleshooting this issue when it first started happening for me. I quickly gave up and decided to just use another browser for the API explorer on localhost. IE 11 works for me. This isn't a great answer, but if you have other browsers installed, give them a try.

like image 45
Eric Simonton Avatar answered Oct 06 '22 00:10

Eric Simonton