NotAllowedError when trying to access AppStats

女生的网名这么多〃 提交于 2020-01-06 04:37:06

问题


After doing everything from here http://code.google.com/appengine/docs/python/tools/appstats.html I get

    <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

when trying to access myapp.appspot.com/_ah/stats or just myapp.appspot.com/stats/


回答1:


Most likely you have created your app with authentication set to only allow users from your Google Apps domain, but you're attempting to access appstats via the appspot.com subdomain. Try again using the URL for your app on your custom domain.



来源:https://stackoverflow.com/questions/8137479/notallowederror-when-trying-to-access-appstats

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!