title: AppEngine Google Cloud Endpoint - discovery not found
body: <p>I am quite new to Python and Google AppEngine, but have had around 7 years of programming experience. I am also new to StackOverflow.</p>
  
  <p>I've been trying to set up a simple Google Cloud Endpoint API for my personal project, and have finished and uploaded the finished app to Google App Engine.</p>
  
  <p>Here are my Endpoint API settings:</p>
  
  <pre><code>@endpoints.api(name='puzzle', version='v1', description='Puzzle Engine API')
  </code></pre>
  
  <p>And methods:</p>
  
  <pre><code>@endpoints.method(
          PuzzleMessage, PuzzleMessage,
          name='puzzle.generate',
          http_method='GET',
          path='generate'
      )
  
  @endpoints.method(
          PuzzleMessage, PuzzleMessage,
          name='puzzle.solve',
          http_method='GET',
          path='solve'
      )
  </code></pre>
  
  <p>My app.yaml looks like:</p>
  
  <pre><code>handlers:
  - url: /favicon\.ico
    static_files: favicon.ico
    upload: favicon\.ico
  
  - url: .*
    script: main.app
  
  # Endpoints handler
  - url: /_ah/api/.*
    script: services.application
  
  libraries:
  - name: webapp2
    version: "2.5.2"
  </code></pre>
  
  <p>And finally services.py reads:</p>
  
  <pre><code>from google.appengine.ext import endpoints
  from api import puzzle_api
  
  application = endpoints.api_server([
                                 puzzle_api.PuzzleAPI
                             ], restricted=False)
  </code></pre>
  
  <p>Now, the problem is that when I try to reach https://<em>my-app-name</em>.appspot.com/_ah/api/discovery/v1/apis, all I see is </p>
  
  <blockquote>
    <p>Not Found</p>
  </blockquote>
  
  <p>Also, when I hit the API Explorer at <a href="https://developers.google.com/apis-explorer/?base=https://" rel="nofollow">https://developers.google.com/apis-explorer/?base=https://</a><em>my-app-name</em>.appspot.com/_ah/api#p/, the list of Services is empty, and in the JavaScript console, I see a 404 error over https://<em>my-app-name</em>.appspot.com/_ah/api/discovery/v1/apis.</p>
  
  <p>Hitting these URLs on local test server gives quite different errors. When I try to reach the API Discovery on local test server at localhost:8080/_ah/api/discovery/v1/apis, I get </p>
  
  <blockquote>
    <p>{"error": {"message": "BackendService.getApiConfigs Error"}}</p>
  </blockquote>
  
  <p>instead of "Not Found". Hitting the Explorer at <a href="https://developers.google.com/apis-explorer/?base=http://localhost:8080/_ah/api#p/" rel="nofollow">https://developers.google.com/apis-explorer/?base=http://localhost:8080/_ah/api#p/</a> would now show 500 error instead of 404 in the JavaScript console as well.</p>
  
  <p>I've been trying to solve this by doing many Google Searches and trying many things out, but I just cannot seem to be able to proceed any further. I would very much appreciate any help I can get from this community of professionals.</p>
  
  <p>Thanks.</p>