Cannot access API explorer on localhost

后端 未结 11 1543
南方客
南方客 2020-12-08 16:10

I\'m trying to build an Endpoints application, but am new to Google App Engine.

As I understand it, there\'s some kind of API Explorer included in the SDK that shoul

11条回答
  •  醉酒成梦
    2020-12-08 17:00

    I'm also new to GAE Endpoints, and I had the same problem. In my case, I had this error because of the order of the url handlers in the app.yaml. I had it like this:

    - url: /.*
      script: core_service.application
    
      # Endpoints handler
    - url: /_ah/spi/.*
      script: api_service.application
    

    The right way is defining first the most specific routes and at the end the most general (/.*). Like this:

      # Endpoints handler
    - url: /_ah/spi/.*
      script: api_service.application
    
    - url: /.*
      script: core_service.application
    

提交回复
热议问题