2

dear all

I'm trying to create a App Engine Module for hosting my api server developed with Google Cloud Endpoints. The endpoint I developed runs well in local dev environment but it responds notFound error after I deployed to remote and test it. I was guessing this might be caused by the fact that endpoints are run in a non-default module. Not sure though. Here is my module definition file (api-server.yaml):

    application: myapp
    module: api-server
    version: dev
    runtime: python27
    instance_class: F2
    api_version: 1
    threadsafe: true
    automatic_scaling:
      max_idle_instances: 5


    handlers:
    - url: /_ah/spi/.*
      script: api_dispatch.application

    libraries:
    - name: endpoints
      version: 1.0

I plan to host endpoints with module cause my api server actually share a lot of code with my default module, which is a normal web app. Please let me know if it's possible. And sample code is very welcome.

Thanks a lot!

1
  • I just deployed my api server to a standalone app engine instance and it works well. So it seems to me that endpoints can't work well with app engine module yet. Commented Nov 13, 2013 at 1:28

1 Answer 1

1

Yes, it's supported. I don't know why the problem happened before. But it starts working now.

Sign up to request clarification or add additional context in comments.

2 Comments

Hi James, I have a similar problem and you seem to have solved it according to this topic. Could you please tell me more about how you did that exactly? I still have problems with separating the API module from the default one. See my unanswered question here: stackoverflow.com/questions/24232580/…. Thank you very much!
@Romain In case you weren't able to figure it out, I was able to get it to work locally by starting two instances of dev_appservers, where one only launched my API module. Hope this helps.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.