Google App Engine - 部署失败,出现错误1:未经授权 [英] Google App Engine - Deploy failing with Error 1: Unauthorised

查看:160
本文介绍了Google App Engine - 部署失败,出现错误1:未经授权的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图让我的第一个(PHP)应用程序工作。它在Google App Engine启动器中运行正常,但是当我试图部署它时,我收到以下消息:

  2014-08- 19 15:37:58运行命令:['C:\\Program Files\\Python\\pythonw.exe','-u','C:\\Program Files\ \Google\\google_appengine\\appcfg.py','--no_cookies',u'--email=by@onetel.com','--passin','update','C:\\ \\\ Documents and Settings \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\版本:1 
03:38 PM主持人:appengine.google.com
03:38 PM
开始更新app:high-winter-668,版本:1
03: 38下午获取当前资源限制。
密码为b ... @ ... com:无效的用户名或密码。
2014-08-19 15:38:08,967错误appcfg.py:2411处理文件''时发生错误:HTTP错误401:未经授权。中止。
错误401:---开始服务器输出---
必须先进行身份验证。
---结束服务器输出---

我可以登录到应用程序I在appengine.google.com上创建



我使用正确/相同的电子邮件地址和密码
我可以看到服务器/本地时差是其他问题。我的本地PC时间与上述错误消息中的时间相同。



我错了什么?



<另外:
我试图在命令行上使用appcfg.py,并遇到另一个问题:
它错误地说我没有high-winter-668.yaml文件。所以我将我的app.yaml的名称更改为high-winter-668.yaml - 然后它抱怨说我没有在yaml文件中指定模块。
同时Google App Engine启动器出现错误我没有一个app.yaml文件
它们是由不同的公司编写的!!

那么,在陷入困境的时候,我找到了答案。



我去了这里:
https://www.google.com/settings/security/lesssecureapps



并选择启用不太安全的设备和应用程序访问您的数据。
当我试图部署 - 它的工作。


I'm trying to get my first (PHP) application working. It works OK in Google App Engine Launcher, but when I try to deploy it I get the following message:

2014-08-19 15:37:58 Running command: "['C:\\Program Files\\Python\\pythonw.exe', '-u', 'C:\\Program Files\\Google\\google_appengine\\appcfg.py', '--no_cookies', u'--email=by@onetel.com', '--passin', 'update', 'C:\\Documents and Settings\\Barry\\My Documents\\test\\high-winter-668']"
03:38 PM Application: high-winter-668; version: 1
03:38 PM Host: appengine.google.com
03:38 PM 
Starting update of app: high-winter-668, version: 1
03:38 PM Getting current resource limits.
Password for b...@...com: Invalid username or password.
2014-08-19 15:38:08,967 ERROR appcfg.py:2411 An error occurred processing file '': HTTP Error 401: Unauthorized. Aborting. 
Error 401: --- begin server output ---
Must authenticate first.
--- end server output ---

I can login OK to the application I created at appengine.google.com

and I am using the right/same email address and password. I can see other topics where server/local time difference is the issue. My local PC time is the same as the time in the above error msg.

What have I got wrong?

Also: I tried using appcfg.py on the command line and ran into another issue: It errored saying I didnt have a "high-winter-668.yaml" file. So I changed the name of my "app.yaml" to "high-winter-668.yaml" - it then complained that I didnt specify a 'module" in the yaml file. Meantime Google App Engine Launcher errored say I didnt have an "app.yaml" file. Are they written by different companies!!??

解决方案

Well, in floundering around I've found an answer.

I went here: https://www.google.com/settings/security/lesssecureapps

and selected "Enable" less secure devices and apps to access your data. When I tried to Deploy - it worked.

这篇关于Google App Engine - 部署失败,出现错误1:未经授权的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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