API后端中的端点似乎一切正常但我的Web客户端在_ah/api/explorer
url中不显示任何服务。 API显示在本地服务器中,但不显示在部署中。在日志中它清楚地显示
API配置更新服务
的app.yaml
application: mk-dev
version: 1
runtime: python27
api_version: 1
threadsafe: yes
- url: /_ah/spi/.*
script: main.api
- url: /.*
script: main.app
secure: always
部署如下;
03:13 PM Compilation completed.
03:13 PM Starting deployment.
03:13 PM Checking if deployment succeeded.
03:13 PM Deployment successful.
03:14 PM Checking if updated app version is serving.
03:14 PM Checking if Endpoints configuration has been updated.
03:14 PM Will check again in 1 seconds.
03:14 PM Checking if Endpoints configuration has been updated.
03:14 PM Will check again in 2 seconds.
03:14 PM Checking if Endpoints configuration has been updated.
03:14 PM Will check again in 4 seconds.
03:14 PM Checking if Endpoints configuration has been updated.
03:14 PM Will check again in 8 seconds.
03:14 PM Checking if Endpoints configuration has been updated.
03:14 PM Completed update of app: mk-dev, version: v1
03:14 PM Uploading index definitions.
刚检查开发工具控制台;
Failed to load resource: https://mk-dev.appspot.com/_ah/api/discovery/v1/apis resourse the server responded with a status of 404 ()
cb=gapi.loaded_0:46 Uncaught Error: java.lang.IllegalArgumentException: Error parsing JSON: SyntaxError: Unexpected token < in JSON at position 1 [<html> <head> <title>404 Not Found</title> </head> <body> <h1>404 Not Found</h1> The resource could not be found.<br /><br /> </body> </html>]
答案 0 :(得分:0)
解决方案是确保我从版本&#34; 1&#34;到&#34; v1&#34;在云控制台设置中。现在工作正常。