Home Download Buy Blog Forum Support

Performing an HTTPS connection

Performing an HTTPS connection

Postby gpfsmurf on Mon Oct 19, 2009 6:40 am

I'm trying to use the GData API to synch some text files with Google Docs.

When executing this through a plugin or the console:
Code: Select all
import urllib2
f = urllib2.urlopen("https://www.google.com/")

I immediately get a timeout error: "urllib2.URLError: <urlopen error The read operation timed out>"

I've tried changing the default timeout but it doesn't help.

Any ideas?

Note: the same code works when I execute it through my local Python 2.5.4 shell
gpfsmurf
 
Posts: 211
Joined: Mon Jun 23, 2008 6:31 pm

Re: Performing an HTTPS connection

Postby jps on Mon Oct 19, 2009 8:20 am

The initial code snippet works ok for me when I paste it into my console (i.e., there's no error, and I can call f.read() and get back the contents). Could this be a proxy issue of some sort?
jps
Site Admin
 
Posts: 3067
Joined: Wed Mar 19, 2008 12:33 pm

Re: Performing an HTTPS connection

Postby gpfsmurf on Tue Oct 20, 2009 3:57 am

I found the problem.
For some reason my _ssl.pyd file was last modified in 2006, while all the .pyd files in the same directory were last modified in 2008.

I replaced_ssl.pyd from the one that comes with Python 2.5.2 (same version as sublime's) and it's working now.
gpfsmurf
 
Posts: 211
Joined: Mon Jun 23, 2008 6:31 pm

Re: Performing an HTTPS connection

Postby gpfsmurf on Wed Oct 21, 2009 7:19 pm

It's probably a bug in the installer then
gpfsmurf
 
Posts: 211
Joined: Mon Jun 23, 2008 6:31 pm

[Installer bug] Performing an HTTPS connection

Postby gpfsmurf on Thu Nov 19, 2009 9:27 pm

When I install a new beta, _ssl.pyd gets overwritten with the old (broken) 2006 version
gpfsmurf
 
Posts: 211
Joined: Mon Jun 23, 2008 6:31 pm


Return to Plugin Development

Who is online

Users browsing this forum: kinokasai and 9 guests