尝试访问AppStats时出现NotAllowedError

时间:2011-11-15 13:59:53

标签: python google-app-engine appstats

从这里做完一切之后 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 /

1 个答案:

答案 0 :(得分:1)

您很可能已创建的应用,其身份验证设置为仅允许来自您的Google Apps域的用户,但您尝试通过appspot.com子域访问appstats。请在自定义域中使用您应用的网址重试。