2

しようとしているappcfg.py update myProjectときに、エンドポイントを更新できませんでした。トレースの一部を次に示します。

09:36 PM Failed to update Endpoints configuration.  The app returned an error when the Google Cloud Endpoints server attempted to communicate with it.
09:36 PM See the deployment troubleshooting documentation for more information: https://developers.google.com/appengine/docs/python/endpoints/test_deploy#troubleshooting_a_deployment_failure
09:36 PM Ignoring Endpoints failure and proceeding with update.

でログを確認しようとしましたhttp://localhost:8080/_ah/spi/BackendService.getApiConfigsが、ターミナルで次のエラーが発生します。

@endpoints.api(name='EventsAPI', version='v1')
AttributeError: 'module' object has no attribute 'api'
INFO     2016-03-18 02:01:37,742 module.py:787] default: "GET /_ah/spi/BackendService.getApiConfigs HTTP/1.1" 500 -

これが私のコードです:

import endpoints
from protorpc import messages
from protorpc import message_types
from protorpc import remote

package = 'Events'

@endpoints.api(name='EventsAPI', version='v1')
class EventsAPI(remote.Service):
    # insert lots of endpoint methods

APPLICATION = endpoints.api_server([EventsAPI])

私はこのチュートリアルに従っています。どこで私は間違えましたか?

4

2 に答える 2

1

エンドポイントの名前に問題があります。名前EventsAPIが無効です。それを変更して、eventsapiこの問題を修正しました。

于 2016-03-18T02:36:36.860 に答える