0

从这里 http://code.google.com/appengine/docs/python/tools/appstats.html完成所有操作后, 我得到了

    <class 'google.appengine.api.users.NotAllowedError'>: 
Traceback (most recent call last):
  File "/base/python_runtime/python_lib/versions/1/google/appengine/ext/appstats/ui.py", line 324, in <module>
    main()
  File "/base/python_runtime/python_lib/versions/1/google/appengine/ext/appstats/ui.py", line 320, in main
    util.run_bare_wsgi_app(app)
  File "/base/python_runtime/python_lib/versions/1/google/appengine/ext/webapp/util.py", line 116, in run_bare_wsgi_app
    result = application(env, _start_response)
  File "/base/python_runtime/python_lib/versions/1/google/appengine/ext/appstats/ui.py", line 308, in __call__
    users.create_login_url(os.getenv('PATH_INFO', '')))])
  File "/base/python_runtime/python_lib/versions/1/google/appengine/api/users.py", line 256, in create_login_url
    raise NotAllowedError

当试图访问 myapp.appspot.com/_ah/stats 或只是 myapp.appspot.com/stats/

4

1 回答 1

1

很可能您创建的应用程序将身份验证设置为仅允许来自您的 Google Apps 域的用户,但您正尝试通过appspot.com子域访问 appstats。在您的自定义域上使用您的应用的 URL 重试。

于 2011-11-15T23:18:42.077 回答