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

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

问题描述

我正在尝试让我的第一个 (PHP) 应用程序运行.它在 Google App Engine Launcher 中运行正常,但是当我尝试部署它时,我收到以下消息:

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 ---

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

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.

我做错了什么?

还有:我尝试在命令行上使用 appcfg.py 并遇到了另一个问题:它错误地说我没有high-winter-668.yaml"文件.因此,我将app.yaml"的名称更改为high-winter-668.yaml"——然后它抱怨我没有在 yaml 文件中指定模块".同时 Google App Engine Launcher 出错说我没有app.yaml"文件.它们是由不同的公司编写的!!??

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.

我去了这里: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天全站免登陆