0

I have launched my Endpoints service and deployed my app onto AppEngine. If I do not specify a service in my app.yaml file, the AppEngine uses the default service. I am able to make a request using Postman and get a successful response.

However, if I specify my own AppEngine service in my app.yaml file like below, I get a "Not found" error.

runtime: python27
threadsafe: true
api_version: 1
basic_scaling:
    max_instances: 2
service: mycustomservice

What am I missing? How can I get Endpoints/AppEngine to see the mycustomservice service?

Maxim
  • 4,075
  • 1
  • 14
  • 23
Melissa Guo
  • 948
  • 9
  • 32
  • When you do that do you have another service being the default one? – Dan Cornilescu Dec 10 '18 at 21:53
  • There is a default service named 'default' in the project. I don't have it manually set in my app.yaml, main.py, or openapi.json files. – Melissa Guo Dec 11 '18 at 12:59
  • After starting mycustomservice, I stopped the default service. However, both services had allocation 100%. – Melissa Guo Dec 11 '18 at 13:08
  • that's fine - I was thinking that a missing default service could be a problem, see https://stackoverflow.com/q/42360790/4495081 – Dan Cornilescu Dec 11 '18 at 13:25
  • Did you update the endpoints config files to match the new service name/url? https://cloud.google.com/endpoints/docs/frameworks/python/required_files – Dan Cornilescu Dec 11 '18 at 13:36
  • I started mycustomservice by including the "service" parameter in app.yaml. The request url is the same. Is there something else I need to update? – Melissa Guo Dec 11 '18 at 14:51
  • Hm, the url may not be the same - without a routing change I'd expect the requests going to the same URL to be routed to the default service, not to the new service... – Dan Cornilescu Dec 11 '18 at 15:29

1 Answers1

0

In your Cloud Endpoints config "openapi-appengine.yaml" set "host" to the path of the non default appengine service you created

default: [PROJECT_ID].appspot.com

additional service [SERVICE]-dot-[PROJECT_ID].appspot.com

RichardB
  • 46
  • 1
  • 6