I couldn't find any info anywhere else about my problem and hope
someone here can be of assistance. I've just started getting a
timeout error for a script that has been working since May 7 this
year. I'm not sure how to find out what is causing this. Hoping
someone here could help me. The entire script connects to a google
calendar we use for room scheduling to get all events for a specifc
date to see if there is a conflict with a time being requested.
Thanks,
Thomas
From running commands under the python prompt. It is several seconds
after the ProgrammaticLogin command is run that the timeout error
comes up.
Python 2.4.6 (#1, Jul 20 2009, 10:45:11)
[GCC 4.4.0 20090506 (Red Hat 4.4.0-4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import gdata.calendar.service
>>> import time
>>> import string
>>>
>>> start_date='2009/11/08'
>>> calendar_id='
xxx.xxx.xxx_3;ldkf0ie00d444...@group.calendar.google.com'
>>> calendar_service = gdata.calendar.service.CalendarService()
>>> calendar_service.email = 'myl...@my.host'
>>> calendar_service.password = '*******'
>>> calendar_service.source = 'Room 421'
>>> calendar_service.ProgrammaticLogin()
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/usr/local/lib/python2.4/site-packages/gdata/service.py", line
780, in ProgrammaticLogin
headers={'Content-Type':'application/x-www-form-urlencoded'})
File "/usr/local/lib/python2.4/site-packages/atom/http.py", line
155, in request
connection.endheaders()
File "/usr/local/lib/python2.4/httplib.py", line 798, in endheaders
self._send_output()
File "/usr/local/lib/python2.4/httplib.py", line 679, in
_send_output
self.send(msg)
File "/usr/local/lib/python2.4/httplib.py", line 646, in send
self.connect()
File "/usr/local/lib/python2.4/httplib.py", line 1072, in connect
sock.connect((self.host, self.port))
File "<string>", line 1, in connect
socket.error: (110, 'Connection timed out')