版权声明
请尊重原创作品。转载请保持文章完整性,并以超链接形式注明原始作者“tingsking18”和主站点地址,方便其他朋友提问和指正。
我有两个gmail账户,一个用来收邮件,一个专门用来放GAE程序,今天我在上传GAE程序的时候遇到如下错误:
C:\Program Files\Google\google_appengine>python appcfg.py update fetioneasy/
warning: Not importing directory 'E:\6.26\locale': missing __init__.py
Scanning files on local disk.
Initiating update.
2009-05-10 19:45:29,375 ERROR appcfg.py:1237 An unexpected error occurred. Abort
ing.
Traceback (most recent call last):
File "C:\Program Files\Google\google_appengine\google\appengine\tools\appcfg.p
y", line 1215, in DoUpload
missing_files = self.Begin()
File "C:\Program Files\Google\google_appengine\google\appengine\tools\appcfg.p
y", line 1010, in Begin
version=self.version, payload=self.config.ToYAML())
File "C:\Program Files\Google\google_appengine\google\appengine\tools\appengin
e_rpc.py", line 344, in Send
f = self.opener.open(req)
File "D:\Python25\Lib\urllib2.py", line 380, in open
response = meth(req, response)
File "D:\Python25\Lib\urllib2.py", line 491, in http_response
'http', request, response, code, msg, hdrs)
File "D:\Python25\Lib\urllib2.py", line 418, in error
return self._call_chain(*args)
File "D:\Python25\Lib\urllib2.py", line 353, in _call_chain
result = func(*args)
File "D:\Python25\Lib\urllib2.py", line 499, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 403: Forbidden
Error 403: --- begin server output ---
You do not have permission to modify this app (app_id=u'fetioneasy').
--- end server output ---
解决方法如下:
1首先要检查是否有这个开通gmail的account
2检查你的app.yaml中的applicationID是否和你的gmail account中创建的appid一样。
3如果你登陆错了email,cookie会创建到你本机。
4删除C:\Documents and Settings\%user%\ 目录下的appcfg_cookies 和appcfg_nag 这两个文件。
然后再上传一下,是不是已经OK了?