Skip to content

Script indefinitely waits at "Trying to login" #5

@rovinbhandari

Description

@rovinbhandari

I ran the script first using --setup and then using <mbl_no> "" but it got stuck at "Trying to login". I double checked my internet connection and also made sure I am not trying the script behind proxy etc. Finally when I pressed Ctrl+C, the script barfed the following Traceback:

Reading Authfile:/home/xxx/.sendsms.auth
Read!
Read zzzzz's number from the phonebook as #number#
The message will be sent to the following numbers:
'#number#'
Username:#my number#
No previous Authentication session
Sending to #number#, the following message:
testing testing
Trying to login
Caught an Exception URLError. Retrying...
Caught an Exception URLError. Retrying...
Caught an Exception URLError. Retrying...
Caught an Exception URLError. Retrying...
Caught an Exception URLError. Retrying...
Caught an Exception URLError. Retrying...
Caught an Exception URLError. Retrying...
^CTraceback (most recent call last):
File "./sendsms.py", line 236, in
if login(username,password):
File "./sendsms.py", line 213, in login
f = tryopen(o,confget('Auth','logincheck'),login_encode)
File "./sendsms.py", line 159, in tryopen
f = opener.open(url,data)
File "/usr/lib/python2.7/urllib2.py", line 391, in open
response = self._open(req, data)
File "/usr/lib/python2.7/urllib2.py", line 409, in _open
'_open', req)
File "/usr/lib/python2.7/urllib2.py", line 369, in _call_chain
result = func(_args)
File "/usr/lib/python2.7/urllib2.py", line 1185, in http_open
return self.do_open(httplib.HTTPConnection, req)
File "/usr/lib/python2.7/urllib2.py", line 1154, in do_open
h.request(req.get_method(), req.get_selector(), req.data, headers)
File "/usr/lib/python2.7/httplib.py", line 955, in request
self._send_request(method, url, body, headers)
File "/usr/lib/python2.7/httplib.py", line 989, in _send_request
self.endheaders(body)
File "/usr/lib/python2.7/httplib.py", line 951, in endheaders
self._send_output(message_body)
File "/usr/lib/python2.7/httplib.py", line 811, in _send_output
self.send(msg)
File "/usr/lib/python2.7/httplib.py", line 773, in send
self.connect()
File "/usr/lib/python2.7/httplib.py", line 754, in connect
self.timeout, self.source_address)
File "/usr/lib/python2.7/socket.py", line 562, in create_connection
sock.connect(sa)
File "/usr/lib/python2.7/socket.py", line 224, in meth
return getattr(self._sock,name)(_args)
KeyboardInterrupt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions