简体   繁体   English

通过本地HTTP使用Google Cloud Endpoints API

[英]Using Google Cloud Endpoints API over local HTTP

I am using OSX. 我正在使用OSX。 I have set up my endpoints in my development server. 我已经在开发服务器中设置了端点。 When I visit localhost:8080/_ah/api/explorer , I receive this error message: 当我访问localhost:8080/_ah/api/explorer ,收到以下错误消息:

The API you are exploring is hosted over HTTP, which can cause problems. 您正在探索的API是通过HTTP托管的,这可能会导致问题。 Learn how to use Explorer with a local HTTP API . 了解如何将Explorer与本地HTTP API一起使用

The link instructs me to start a Chrome session with special flags as follows : 该链接指示我使用以下特殊标志启动Chrome会话

[path-to-Chrome] --user-data-dir=test --unsafely-treat-insecure-origin-as-secure=http://localhost:port

I am confused about where to input this line? 我对在哪里输入此行感到困惑? I assumed that it should be entered into the CLI, so I tried it on the terminal: 我假设应该将其输入CLI,因此我在终端上尝试了它:

$ /Applications/GoogleChrome.app --user-data-dir=test --unsafely-treat-insecure-origin-as-secure=http://localhost:8080

Of course, the response is this: 当然,响应是这样的:

$ -bash: GoogleChrome.app: command not found

After some research, I found that I can launch a Chrome session using the $ google-chrome command, but this also failed with -bash: google-chrome: command not found . 经过研究后,我发现可以使用$ google-chrome命令启动Chrome会话,但这也因-bash: google-chrome: command not found而失败。

I also tried to locate Chrome using $ whereis google-chrome , but this returns no response. 我还尝试使用$ whereis google-chrome定位Chrome,但这未返回任何响应。

试试这个: open /Applications/Google\\ Chrome.app --args --user-data-dir=test --unsafely-treat-insecure-origin-as-secure=http://localhost:8080

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用App Engine SDK在localhost中部署我的Google端点python应用程序时出错 - Error when I am deploying my google cloud endpoints python application in localhost with App Engine SDK 无法使用 Google Colab 上传本地文件 - Unable to upload local files using Google Colab 使用 Google Chrome 扩展程序访问本地文件 - Access Local Files using a Google Chrome Extension Java API / Google Chrome请求之间的HTTP请求区别? - HTTP request differences between Java API/Google Chrome requests? 如何使用Chrome扩展程序中的Google端点 - How to use Google Endpoints from Chrome Extension 无法从 Chrome 扩展访问端点 API - Cannot access endpoints API from chrome extension 使用Google Cloud Instance的开源MANO(OSM)授权 - Open Source MANO (OSM) authorization using Google Cloud Instance 在 Google Chrome 中使用 javascript 加载本地 xml 文件 - Load local xml file using javascript in Google Chrome 是否可以直接从Chrome扩展程序向Google Cloud AutoML API发送查询? - Is it possible to send queries directly from a Chrome extension to the Google Cloud AutoML API? HTML到PDF(使用Google chrome API)? - HTML to PDF (Using Google chrome API)?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM