Endpoint in Compute engine error code 7

641 views
Skip to first unread message

sebastian...@gmail.com

unread,
Jul 21, 2019, 12:32:19 AM7/21/19
to Google Cloud Endpoints
I made the guide to use endpoint in compute engine.

In this part https://cloud.google.com/endpoints/docs/openapi/get-started-compute-engine-docker?hl=es-419#send_request  when I use curl to send an HTTP request the API responds with the following:

{
 "code": 7,
 "message": "API echo-api.endpoints.geounity.cloud.goog is invalid for the consumer project.",
 "details": [
  {
   "stackEntries": [],
   "detail": "service_control"
  }
 ]
}



What mean?

Qiwen Zhang

unread,
Jul 22, 2019, 6:05:53 PM7/22/19
to Google Cloud Endpoints
You have used an api-key from a wrong project.  The consumer project that the api-key is from is not allowed to access the service "echo-api.endpoints.geounity.cloud.goog".  
Reply all
Reply to author
Forward
0 new messages