Hi,
The project I'm working on was just upgraded to Cloud Endpoint Framework 2.0. A colleague of mine did the migration, and everything went smoothly. For him...
However, when I try to run the local devserver for the project on my machine, it fails during start-up with the following error:
[INFO] GCLOUD: endpoints.repackaged.com.google.api.config.ServiceConfigException: Failed to fetch default config version for service '<SERVICE-NAME>'. No versions exist!
Trying everything, I added ENDPOINTS_SERVICE_VERSION to my appengine-web.xml (my colleague does not have this config) and get a different error:
[INFO] GCLOUD: endpoints.repackaged.com.google.api.config.ServiceConfigException: Failed to fetch service config (status code 403)
As far as we can see, we are both running the latest versions of both App Engine (1.9.50) and Google Cloud SDK (147.0.0) (with same components installed), also same version of Java and same version of Maven. I am owner of the App Engine project.
We have three more projects where I get the exact same behaviour, which means that there is probably something not properly configured on my machine related to this.
I have seen in some examples that the deployed version of the API spec (like 2017-03-22r2) has to be inserted somewhere but my colleague haven't, and none of us can find where to add it in a Java / Maven project.
Someone else on Stack Overflow have the same issue: http://stackoverflow.com/questions/42421042/com-google-api-config-serviceconfigsupplier-failed-to-fetch-default-config-ver
Please, anyone with some pointers on where to continue looking?
Thanks,
Marcus
--
You received this message because you are subscribed to the Google Groups "Google Cloud Endpoints" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-cloud-endpoints+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-cloud-endpoints/651baf2e-cca4-4c46-9097-a88af82e8854%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
[home-dir]$ env | grep ENDPOINTS_SERVICE_NAME
ENDPOINTS_SERVICE_NAME=<module-name>.endpoints.<project-id>.cloud.goog
(I replaced the actual values above)
I also have it in my appengine-web.xml:
<env-variables>
<env-var name="ENDPOINTS_SERVICE_NAME" value="${application.module}.endpoints.${application.id}.cloud.goog"/>
</env-variables>
--
You received this message because you are subscribed to the Google Groups "Google Cloud Endpoints" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-cloud-endp...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-cloud-endpoints/93bc2f96-6b9c-48cc-acd8-19c7fc1323a0%40googlegroups.com.
What's the output when you run: gcloud service-management configs list --service=<module>.endpoints.<project>.cloud.goog?
On Wed, Mar 22, 2017 at 11:46 AM <marcus....@apegroup.com> wrote:
Hi Brad!--Thanks for answering.Unfortunately, I have set the environment variable.[home-dir]$ env | grep ENDPOINTS_SERVICE_NAME
ENDPOINTS_SERVICE_NAME=<module-name>.endpoints.<project-id>.cloud.goog
(I replaced the actual values above)
I also have it in my appengine-web.xml:
<env-variables>
<env-var name="ENDPOINTS_SERVICE_NAME" value="${application.module}.endpoints.${application.id}.cloud.goog"/>
</env-variables>
The properties resolve correctly in my targets folder.
As I mentioned, my actual project source code is no different from what my colleague has and he runs the application locally without issues. Also, he has not set the environment variable.Thanks!Marcus
You received this message because you are subscribed to the Google Groups "Google Cloud Endpoints" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-cloud-endpoints+unsub...@googlegroups.com.
Hi Marcus,
Did you find a solution ?
I am facing the same error.
On Thursday, April 6, 2017 at 12:49:42 AM UTC+5:30, Daniel Tang wrote:
What's the output when you run: gcloud service-management configs list --service=<module>.endpoints.<project>.cloud.goog?
On Wed, Mar 22, 2017 at 11:46 AM <marcus....@apegroup.com> wrote:
Hi Brad!--Thanks for answering.Unfortunately, I have set the environment variable.[home-dir]$ env | grep ENDPOINTS_SERVICE_NAME
ENDPOINTS_SERVICE_NAME=<module-name>.endpoints.<project-id>.cloud.goog
(I replaced the actual values above)
I also have it in my appengine-web.xml:
<env-variables>
<env-var name="ENDPOINTS_SERVICE_NAME" value="${application.module}.endpoints.${application.id}.cloud.goog"/>
</env-variables>
The properties resolve correctly in my targets folder.
As I mentioned, my actual project source code is no different from what my colleague has and he runs the application locally without issues. Also, he has not set the environment variable.Thanks!Marcus
You received this message because you are subscribed to the Google Groups "Google Cloud Endpoints" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-cloud-endpoints+unsubscri...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-cloud-endpoints/93bc2f96-6b9c-48cc-acd8-19c7fc1323a0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Google Cloud Endpoints" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-cloud-endpoints+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-cloud-endpoints/f84ec25b-6cdd-4509-a265-b8bd13b418e5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-cloud-endpoints/f84ec25b-6cdd-4509-a265-b8bd13b418e5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--DC