App Engine端点关闭 [英] App Engine Endpoints DOWN

查看:102
本文介绍了App Engine端点关闭的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Google Cloud Endpoints作为我的应用程序。每当我点击应用程序根目录时,它都会给出错误信息。控制台说:

 从google.appengine.ext导入端点已被弃用,并将被删除。将端点库添加到app.yaml,然后只需使用导入端点即可导入端点。 

在文档中没有提到这一点,我相信我正确地做到了这一点。



我尝试将端点添加到 app.yaml 的库部分,但部署失败,说它不是有效的图书馆。当我查看实例页面时,它说我的实例正在 App Engine 1.8.5 上运行,这是一个尚未发布的预发布版本!



这是Google问题还是我的代码?

解决方案

重新看到是一个警告,而不是一个错误。运行在Python 2.7上的端点将继续工作,而不需要更改代码。

然而,如果您尝试在Python 2.5上运行Endpoints,也可能会看到一个错误。这将不再起作用,并且不幸的是在发布之前没有很好的沟通。要继续使用端点,您需要将您的应用程序更新到Python 2.7。


I use Google Cloud Endpoints for my application. Whenever I hit the application root, it gives an error. The console says:

Importing endpoints from google.appengine.ext is deprecated and will be removed.  Add the endpoints library to app.yaml, then endpoints can be imported simply with "import endpoints".

There is no mention of this in the documentation and I believe I am doing this correctly.

I tried adding endpoints to the library section of app.yaml, but the deployment failed saying that it wasn't a valid library. When I look in the instance page, it says that my instances are running on App Engine 1.8.5, which is a pre-release version that hasn't even come out yet!

Is this a Google problem or something with my code?

解决方案

The message you're seeing is a warning, not an error. Endpoints running on Python 2.7 will continue to work without code changes.

However, you may also be seeing an error if you're trying to run Endpoints on Python 2.5. This will no longer work, and unfortunately was not well communicated prior to the release. To resume use of Endpoints, you'll need to update your application to Python 2.7.

这篇关于App Engine端点关闭的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆