本文介绍了谷歌应用程序引擎 - 权限被拒绝的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序不会在开发服务器或活动服务器上更新,除非我执行步骤3(下面),否则,每一次。否则,我将收到如下所示的权限问题:

  e2016-01-08 12:47:58,781错误appcfg.py:2438处理文件''时发生错误:HTTP错误403:禁止意外的HTTP状态403.正在中止。 

错误403:---开始服务器输出---
您没有权限修改这个应用程序(app_id = u's〜project-name')。
---终端服务器输出---



理想情况下,我只想使用dev_appserver.py进行测试。



我已经试过的东西
$ b


  1. appcfg .py update --no_cookies。在我登录网页后,我得到了

    没有收到数据



    ERR_EMPTY_RESPONSE


我的终端卡在--noauth_local_webserver p>


  1. appcfg.py回滚。这给我留下了相同的错误:



    错误403:---开始服务器输出---
    您无权修改此应用程序(app_id = u's〜')。
    --- end server output ---


  2. appcfg.py -A< project name>更新这只是返回上面的错误


  3. appcfg.py --no_cookies --oauth2 - -email = myemail --noauth_local_webserver update。这会将项目上传到我的服务器,但是我已经厌倦了'允许'然后每次将代码粘贴回终端


  4. 关闭应用程序引擎启动器,从启动器中删除项目,然后添加回来 关闭计算机


  5. 从终端启动,从应用程序引擎启动器启动


  6. 注意:我是已登录google chrome

接下来我应该怎么做?

解决方案每次使用'--no_cookies'选项时,您都会告诉appcfg永远不会保存您的凭据,因此每次上传应用程序时都会提示您。

b
$ b

运行 appcfg.py更新app.yaml appcfg.py更新< dir_name> 只需要一次就足够了,因为'--oauth2'选项现在是默认的并且是当前唯一的支持身份验证方法。



在附注中,appcfg将某些文件存储在您的用户目录(Windows上的 C:\ Users \< username> / home /<用户名> 在Linux / Mac上)名称为'.appcfg_ *'作为其cookies和保存的授权令牌。您可能需要显示隐藏的文件/扩展名才能看到它们。有时删除这些文件并重新运行appcfg可能有助于auth无法正常工作。


The problem

my appication won't update on the dev server or the live server unless I do step 3 (below), every single time. Otherwise, I will get permission problems as shown below

e2016-01-08 12:47:58,781 ERROR appcfg.py:2438 An error occurred processing file '': HTTP Error 403: Forbidden Unexpected HTTP status 403. Aborting.

Error 403: --- begin server output ---You do not have permission to modify this app (app_id=u's~project-name').--- end server output ---

I'd ideally like to test just using dev_appserver.py

Things I've already tried

  1. appcfg.py update --no_cookies . after the webpage opened for me to sign in, I got

    No data received

    ERR_EMPTY_RESPONSE

and my terminal was stuck on " --noauth_local_webserver "

  1. appcfg.py rollback . That leaves me with the same error:

    Error 403: --- begin server output ---You do not have permission to modify this app (app_id=u's~').--- end server output ---

  2. appcfg.py -A <project name> update . This just returns error from step above

  3. appcfg.py --no_cookies --oauth2 --email=myemail --noauth_local_webserver update . this uploads the project to my server, but, I'm tired of having to 'allow' then paste the code back into the terminal every single time

  4. shutting down app engine launcher, removing project from launcher then adding back

  5. restarting computer, turing off computer

  6. launching from the terminal, launching from app engine launcher

  7. Note: I'm already signed into google chrome

What should I try next?

解决方案

Every time you use the '--no_cookies' option, you are telling appcfg to never save your credentials, so it's always going to prompt you every time you upload your app.

Running appcfg.py update app.yaml or appcfg.py update <dir_name> just once should be sufficient, since the '--oauth2' option is now the default and currently the only support authentication method.

On a side note, appcfg stores certain files under your user directory (C:\Users\<username> on Windows, or /home/<username> on Linux / Mac) named '.appcfg_*' for its cookies and saved auth tokens. You may need to show hidden files / extensions to see them. Sometimes deleting these files and re-running appcfg can help with auth not working.

这篇关于谷歌应用程序引擎 - 权限被拒绝的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-20 15:06
查看更多