Cannot access API explorer on localhost

后端 未结 11 1363
南方客
南方客 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 16:57

    I tried all of the above in chrome and nothing works for me, but using firefox I just click in the lock at the left of the url bar and disable the security. That made the trick for me, cheers !! :D

    0 讨论(0)
  • 2020-12-08 16:57

    If you are running the AppEngine from GWT DevMode you need to change port in the base parameter to match what you see in console, for me that's 8888:

    http://apis-explorer.appspot.com/apis-explorer/?base=http://localhost:8888/_ah/api#p/

    0 讨论(0)
  • 2020-12-08 16:59

    A quick fix: Open the link: http://apis-explorer.appspot.com/apis-explorer/?base=http://localhost:8080/_ah/api#p/ in firefox , then click the secure connection icon on the nav bar, then click disable protection. You should be able to see your APIs

    ps; Remember to edit 8080 with your port number

    0 讨论(0)
  • 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
    
    0 讨论(0)
  • 2020-12-08 17:05

    If you are using Chrome browser, just make https in the URL to http. It worked for me.

    http://apis-explorer.appspot.com/apis-explorer/?base=http://localhost:8080/_ah/api#p/

    0 讨论(0)
提交回复
热议问题