API 已部署并提供服务...服务未显示 - GAE
API deployed and serving... Services not showing up - GAE
API 后端中的端点似乎一切正常,但我的 Web 客户端在 _ah/api/explorer
url 中不显示任何服务。 API 出现在本地服务器中,但未出现在部署中。在日志中它清楚地显示
API configuration update serving
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>]
解决方案是确保我在云控制台设置中将流量从版本“1”迁移到 "v1"。现在工作正常。
API 后端中的端点似乎一切正常,但我的 Web 客户端在 _ah/api/explorer
url 中不显示任何服务。 API 出现在本地服务器中,但未出现在部署中。在日志中它清楚地显示
API configuration update serving
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>]
解决方案是确保我在云控制台设置中将流量从版本“1”迁移到 "v1"。现在工作正常。