Solution to urllib2.py errors during GAE deployment

Source: Internet
Author: User

Google App Engine Launcher has a problem. After you click Deploy, you will find that it cannot work normally. Sorry, the following error is reported:

16:32:27, 427 ERROR appcfg. py: 1568 An unexpected error occurred. Aborting.
Traceback (most recent call last ):
File "C:/Program Files/Google/google_appengine/google/appengine/tools/appcfg. py", line 1535, in DoUpload
Missing_files = self. Begin ()
File "C:/Program Files/Google/google_appengine/google/appengine/tools/appcfg. py", line 1305, in Begin
Version = self. version, payload = self. config. ToYAML ())
File "C:/Program Files/Google/google_appengine/google/appengine/tools/appengine_rpc.py", line 346, in Send
F = self. opener. open (req)
File "C:/Python25/lib/urllib2.py", line 381, in open
Response = self. _ open (req, data)
File "C:/Python25/lib/urllib2.py", line 399, in _ open
'_ Open', req)
File "C:/Python25/lib/urllib2.py", line 360, in _ call_chain
Result = func (* args)
File "C:/Python25/lib/urllib2.py", line 1115, in https_open
Return self. do_open (httplib. HTTPSConnection, req)
File "C:/Python25/lib/urllib2.py", line 1082, in do_open
Raise URLError (err)
URLError: <urlopen error (8, 'eof occurred in violation of Protocol')>
Traceback (most recent call last ):
File "C:/Program Files/Google/google_appengine/appcfg. py", line 68, in <module>
Run_file (_ file __, globals ())
File "C:/Program Files/Google/google_appengine/appcfg. py", line 64, in run_file
Execfile (script_path, globals _)
File "C:/Program Files/Google/google_appengine/google/appengine/tools/appcfg. py", line 2757, in <module>
Main (sys. argv)
File "C:/Program Files/Google/google_appengine/google/appengine/tools/appcfg. py", line 2748, in main
Result = AppCfgApp (argv). Run ()
File "C:/Program Files/Google/google_appengine/google/appengine/tools/appcfg. py", line 1763, in Run
Self. action (self)
File "C:/Program Files/Google/google_appengine/google/appengine/tools/appcfg. py", line 2619, in _ call __
Return method ()
File "C:/Program Files/Google/google_appengine/google/appengine/tools/appcfg. py", line 2070, in Update
Lambda path: open (OS. path. join (basepath, path), 'rb '))
File "C:/Program Files/Google/google_appengine/google/appengine/tools/appcfg. py", line 1535, in DoUpload
Missing_files = self. Begin ()
File "C:/Program Files/Google/google_appengine/google/appengine/tools/appcfg. py", line 1305, in Begin
Version = self. version, payload = self. config. ToYAML ())
File "C:/Program Files/Google/google_appengine/google/appengine/tools/appengine_rpc.py", line 346, in Send
F = self. opener. open (req)
File "C:/Python25/lib/urllib2.py", line 381, in open
Response = self. _ open (req, data)
File "C:/Python25/lib/urllib2.py", line 399, in _ open
'_ Open', req)
File "C:/Python25/lib/urllib2.py", line 360, in _ call_chain
Result = func (* args)
File "C:/Python25/lib/urllib2.py", line 1115, in https_open
Return self. do_open (httplib. HTTPSConnection, req)
File "C:/Python25/lib/urllib2.py", line 1082, in do_open
Raise URLError (err)
Urllib2.URLError: <urlopen error (8, 'eof occurred in violation of Protocol')>
2010-06-16 16:32:27 (Process exited with code 1)

 

The reason is that https://appengine.google.com/is not easily uploaded.

The solution is as follows:

1. Execute the following command in the command line:
Set HTTP_PROXY = http://google.cn: 80
Set HTTPS_PROXY = http://google.cn: 80
Appcfg. py update your app folder
It can be uploaded successfully.

2. the command line upload solution is
Appcfg. py -- insecure update project
The -- insecure parameter is added.

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.