urllib2.URLError: <urlopen error unknown url type: http

C

Coonay

i use python2.6


File "C:\PROGRA~1\Python26\lib\urllib2.py", line 383, in open
response = self._open(req, data)
File "C:\PROGRA~1\Python26\lib\urllib2.py", line 401, in _open
'_open', req)
File "C:\PROGRA~1\Python26\lib\urllib2.py", line 361, in
_call_chain
result = func(*args)
File "C:\PROGRA~1\Python26\lib\urllib2.py", line 690, in <lambda>
meth(r, proxy, type))
File "C:\PROGRA~1\Python26\lib\urllib2.py", line 713, in proxy_open
return self.parent.open(req)
File "C:\PROGRA~1\Python26\lib\urllib2.py", line 383, in open
response = self._open(req, data)
File "C:\PROGRA~1\Python26\lib\urllib2.py", line 406, in _open
'unknown_open', req)
File "C:\PROGRA~1\Python26\lib\urllib2.py", line 361, in
_call_chain
result = func(*args)
File "C:\PROGRA~1\Python26\lib\urllib2.py", line 1163, in
unknown_open
raise URLError('unknown url type: %s' % type)
urllib2.URLError: <urlopen error unknown url type: "http>
 
C

Chris Rebert

i use python2.6


File "C:\PROGRA~1\Python26\lib\urllib2.py", line 383, in open
   response = self._open(req, data)
 File "C:\PROGRA~1\Python26\lib\urllib2.py", line 401, in _open
   '_open', req)
 File "C:\PROGRA~1\Python26\lib\urllib2.py", line 361, in
_call_chain
   result = func(*args)
 File "C:\PROGRA~1\Python26\lib\urllib2.py", line 690, in <lambda>
   meth(r, proxy, type))
 File "C:\PROGRA~1\Python26\lib\urllib2.py", line 713, in proxy_open
   return self.parent.open(req)
 File "C:\PROGRA~1\Python26\lib\urllib2.py", line 383, in open
   response = self._open(req, data)
 File "C:\PROGRA~1\Python26\lib\urllib2.py", line 406, in _open
   'unknown_open', req)
 File "C:\PROGRA~1\Python26\lib\urllib2.py", line 361, in
_call_chain
   result = func(*args)
 File "C:\PROGRA~1\Python26\lib\urllib2.py", line 1163, in
unknown_open
   raise URLError('unknown url type: %s' % type)
urllib2.URLError: <urlopen error unknown url type: "http>

A. Please include the *entire* traceback, in the future
B. Please include a snippet of the code you're using, in the future
C. A bit less curt of a missive would also be appreciated

That all said, judging by the error message, it appears that the URL
you're trying to open has a double-quote (") as its first character,
which is obviously not permissible.
I can't be completely sure however, since you neglected to include the
entire traceback or any of your actual code.

Cheers,
Chris
 
C

Coonay

i update via http proxy

cmd>set HTTP_PROXY=http://cache.mycompany.com:3128
cmd>python appcfg.py update myapp


URLError: <urlopen error [Errno 10061] No connection could be made
because the t
arget machine actively refused it>
Traceback (most recent call last):
File "C:\Program Files\Google\google_appengine\appcfg.py", line 60,
in <module run_file(__file__, globals())
File "C:\Program Files\Google\google_appengine\appcfg.py", line 57,
in run_fil
e
execfile(script_path, globals_)
File "C:\Program Files\Google\google_appengine\google\appengine\tools
\appcfg.p
y", line 1976, in <module>
main(sys.argv)
File "C:\Program Files\Google\google_appengine\google\appengine\tools
\appcfg.p
y", line 1967, in main
result = AppCfgApp(argv).Run()
File "C:\Program Files\Google\google_appengine\google\appengine\tools
\appcfg.p
y", line 1418, in Run
self.action(self)
File "C:\Program Files\Google\google_appengine\google\appengine\tools
\appcfg.p
y", line 1879, in __call__
return method()
File "C:\Program Files\Google\google_appengine\google\appengine\tools
\appcfg.p
y", line 1669, in Update
lambda path: open(os.path.join(basepath, path), "rb"))
File "C:\Program Files\Google\google_appengine\google\appengine\tools
\appcfg.p
y", line 1213, in DoUpload
missing_files = self.Begin()
File "C:\Program Files\Google\google_appengine\google\appengine\tools
\appcfg.p
y", line 1009, in Begin
version=self.version, payload=self.config.ToYAML())
File "C:\Program Files\Google\google_appengine\google\appengine\tools
\appengin
e_rpc.py", line 312, in Send
self._Authenticate()
File "C:\Program Files\Google\google_appengine\google\appengine\tools
\appengin
e_rpc.py", line 344, in _Authenticate
super(HttpRpcServer, self)._Authenticate()
File "C:\Program Files\Google\google_appengine\google\appengine\tools
\appengin
e_rpc.py", line 233, in _Authenticate
auth_token = self._GetAuthToken(credentials[0], credentials[1])
File "C:\Program Files\Google\google_appengine\google\appengine\tools
\appengin
e_rpc.py", line 177, in _GetAuthToken
response = self.opener.open(req)
File "C:\PROGRA~1\Python26\lib\urllib2.py", line 383, in open
response = self._open(req, data)
File "C:\PROGRA~1\Python26\lib\urllib2.py", line 401, in _open
'_open', req)
File "C:\PROGRA~1\Python26\lib\urllib2.py", line 361, in _call_chain
result = func(*args)
File "C:\PROGRA~1\Python26\lib\urllib2.py", line 1138, in https_open
return self.do_open(httplib.HTTPSConnection, req)
File "C:\PROGRA~1\Python26\lib\urllib2.py", line 1105, in do_open
raise URLError(err)
urllib2.URLError: <urlopen error [Errno 10061] No connection could be
made becau
se the target machine actively refused it>

D:\workspace\python>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,967
Messages
2,570,148
Members
46,694
Latest member
LetaCadwal

Latest Threads

Top