尝试访问AppStats时出现NotAllowedError [英] NotAllowedError when trying to access AppStats

查看:146
本文介绍了尝试访问AppStats时出现NotAllowedError的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从这里做完所有事情之后 http://code.google.com/appengine/docs/python/tools/appstats.html 我得到

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

当尝试访问myapp.appspot.com/_ah/stats或仅访问myapp.appspot.com/stats/

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

推荐答案

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

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.

这篇关于尝试访问AppStats时出现NotAllowedError的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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