I'm trying to run transwhat as a spectrum2 backend. I've set up spectrum2 (it's running ICQtransport for two weeks now) and launched transwhat. I got my password from WART, registered to transport, and I'm getting the error below when trying to log in. I took a tcpdump capture, the connection is made successfully to the e1.whatsapp.net:443, and it's closing by the remote, so it looks like the data is transmitting fine.
Python 2.7.11 (default, Jan 28 2016, 12:50:28)
[GCC 4.2.1 Compatible FreeBSD Clang 3.4.1 (tags/RELEASE_34/dot1-final 208032)] on freebsd10
2016-02-17 16:46:55,185 DEBUG WhatsAppBackend: Backend started
2016-02-17 16:46:55,221 DEBUG WhatsAppBackend: handleLoginRequest([email protected], legacyName=79028324213)
2016-02-17 16:46:55,221 DEBUG yowsup.stacks.yowstack: Initializing stack
2016-02-17 16:46:55,221 DEBUG yowsup.stacks.yowstack: Constructed Network Layer
2016-02-17 16:46:55,222 DEBUG yowsup.stacks.yowstack: Constructed Stanza Regulator Layer
2016-02-17 16:46:55,222 DEBUG yowsup.stacks.yowstack: Constructed Crypt Layer
2016-02-17 16:46:55,222 DEBUG yowsup.stacks.yowstack: Constructed Coder Layer
2016-02-17 16:46:55,222 DEBUG yowsup.stacks.yowstack: Constructed Axolotl Layer
2016-02-17 16:46:55,222 DEBUG yowsup.stacks.yowstack: Constructed Authentication Layer - Messages Layer - Receipt Layer - Ack Layer - Media Layer - Ib Layer - Iq Layer - notification Ib Layer - Iq Layer - Chatstate Layer - call Layer - Privacy Layer - Profiles Layer - Groups Iq Layer - Presence Layer
2016-02-17 16:46:55,222 DEBUG yowsup.stacks.yowstack: Constructed Interface Layer
2016-02-17 16:46:55,222 INFO Session: Created: 79028324213
2016-02-17 16:46:55,223 INFO Session: [email protected] attempting login
2016-02-17 16:46:55,223 DEBUG yowsup.layers.network.layer: Connecting to e1.whatsapp.net:443
2016-02-17 16:46:55,320 DEBUG WhatsAppBackend: handleBuddies(buddies=)
2016-02-17 16:46:55,673 ERROR transwhat: Traceback (most recent call last):
File "/usr/local/transwhat/transwhat.py", line 94, in <module>
asyncore.loop(timeout=1.0, count=10, use_poll = True)
File "/usr/local/lib/python2.7/asyncore.py", line 220, in loop
poll_fun(timeout, map)
File "/usr/local/lib/python2.7/asyncore.py", line 201, in poll2
readwrite(obj, flags)
File "/usr/local/lib/python2.7/asyncore.py", line 123, in readwrite
obj.handle_error()2016-02-17 16:46:55,185 DEBUG WhatsAppBackend: Backend started
2016-02-17 16:46:55,221 DEBUG WhatsAppBackend: handleLoginRequest([email protected], legacyName=79028324213)
2016-02-17 16:46:55,221 DEBUG yowsup.stacks.yowstack: Initializing stack
2016-02-17 16:46:55,221 DEBUG yowsup.stacks.yowstack: Constructed Network Layer
2016-02-17 16:46:55,222 DEBUG yowsup.stacks.yowstack: Constructed Stanza Regulator Layer
2016-02-17 16:46:55,222 DEBUG yowsup.stacks.yowstack: Constructed Crypt Layer
2016-02-17 16:46:55,222 DEBUG yowsup.stacks.yowstack: Constructed Coder Layer
2016-02-17 16:46:55,222 DEBUG yowsup.stacks.yowstack: Constructed Axolotl Layer
2016-02-17 16:46:55,222 DEBUG yowsup.stacks.yowstack: Constructed Authentication Layer - Messages Layer - Receipt Layer - Ack Layer - Media Layer - Ib Layer - Iq Layer - notification Ib Layer - Iq Layer - Chatstate Layer - call Layer - Privacy Layer - Profiles Layer - Groups Iq Layer - Presence Layer
2016-02-17 16:46:55,222 DEBUG yowsup.stacks.yowstack: Constructed Interface Layer
2016-02-17 16:46:55,222 INFO Session: Created: 79028324213
2016-02-17 16:46:55,223 INFO Session: [email protected] attempting login
2016-02-17 16:46:55,223 DEBUG yowsup.layers.network.layer: Connecting to e1.whatsapp.net:443
2016-02-17 16:46:55,320 DEBUG WhatsAppBackend: handleBuddies(buddies=)
2016-02-17 16:46:55,673 ERROR transwhat: Traceback (most recent call last):
File "/usr/local/transwhat/transwhat.py", line 94, in <module>
asyncore.loop(timeout=1.0, count=10, use_poll = True)
File "/usr/local/lib/python2.7/asyncore.py", line 220, in loop
poll_fun(timeout, map)
File "/usr/local/lib/python2.7/asyncore.py", line 201, in poll2
readwrite(obj, flags)
File "/usr/local/lib/python2.7/asyncore.py", line 123, in readwrite
obj.handle_error()
File "/usr/local/lib/python2.7/asyncore.py", line 110, in readwrite
obj.handle_write_event()
File "/usr/local/lib/python2.7/asyncore.py", line 467, in handle_write_event
self.handle_connect_event()
File "/usr/local/lib/python2.7/asyncore.py", line 455, in handle_connect_event
self.handle_connect()
File "/usr/local/lib/python2.7/site-packages/yowsup/layers/network/layer.py", line 68, in handle_connect
self.emitEvent(YowLayerEvent(YowNetworkLayer.EVENT_STATE_CONNECTED))
File "/usr/local/lib/python2.7/site-packages/yowsup/layers/__init__.py", line 72, in emitEvent
self.__upper.emitEvent(yowLayerEvent)
File "/usr/local/lib/python2.7/site-packages/yowsup/layers/__init__.py", line 72, in emitEvent
self.__upper.emitEvent(yowLayerEvent)
File "/usr/local/lib/python2.7/site-packages/yowsup/layers/__init__.py", line 72, in emitEvent
self.__upper.emitEvent(yowLayerEvent)
File "/usr/local/lib/python2.7/site-packages/yowsup/layers/__init__.py", line 72, in emitEvent
self.__upper.emitEvent(yowLayerEvent)
File "/usr/local/lib/python2.7/site-packages/yowsup/layers/__init__.py", line 66, in emitEvent
if self.__upper and not self.__upper.onEvent(yowLayerEvent):
File "/usr/local/lib/python2.7/site-packages/yowsup/layers/__init__.py", line 187, in onEvent
stopEvent = stopEvent or s.onEvent(yowLayerEvent)
File "/usr/local/lib/python2.7/site-packages/yowsup/layers/auth/layer_authentication.py", line 53, in onEvent
self.login()
File "/usr/local/lib/python2.7/site-packages/yowsup/layers/auth/layer_authentication.py", line 57, in login
self.credentials = self._credentials or self.__getCredentials()
File "/usr/local/lib/python2.7/site-packages/yowsup/layers/auth/layer_authentication.py", line 37, in __getCredentials
password = base64.b64decode(pb64)
File "/usr/local/lib/python2.7/base64.py", line 77, in b64decode
raise TypeError(msg)
TypeError: Incorrect padding
File "/usr/local/lib/python2.7/asyncore.py", line 110, in readwrite
obj.handle_write_event()
File "/usr/local/lib/python2.7/asyncore.py", line 467, in handle_write_event
self.handle_connect_event()
File "/usr/local/lib/python2.7/asyncore.py", line 455, in handle_connect_event
self.handle_connect()
File "/usr/local/lib/python2.7/site-packages/yowsup/layers/network/layer.py", line 68, in handle_connect
self.emitEvent(YowLayerEvent(YowNetworkLayer.EVENT_STATE_CONNECTED))
File "/usr/local/lib/python2.7/site-packages/yowsup/layers/__init__.py", line 72, in emitEvent
self.__upper.emitEvent(yowLayerEvent)
File "/usr/local/lib/python2.7/site-packages/yowsup/layers/__init__.py", line 72, in emitEvent
self.__upper.emitEvent(yowLayerEvent)
File "/usr/local/lib/python2.7/site-packages/yowsup/layers/__init__.py", line 72, in emitEvent
self.__upper.emitEvent(yowLayerEvent)
File "/usr/local/lib/python2.7/site-packages/yowsup/layers/__init__.py", line 72, in emitEvent
self.__upper.emitEvent(yowLayerEvent)
File "/usr/local/lib/python2.7/site-packages/yowsup/layers/__init__.py", line 66, in emitEvent
if self.__upper and not self.__upper.onEvent(yowLayerEvent):
File "/usr/local/lib/python2.7/site-packages/yowsup/layers/__init__.py", line 187, in onEvent
stopEvent = stopEvent or s.onEvent(yowLayerEvent)
File "/usr/local/lib/python2.7/site-packages/yowsup/layers/auth/layer_authentication.py", line 53, in onEvent
self.login()
File "/usr/local/lib/python2.7/site-packages/yowsup/layers/auth/layer_authentication.py", line 57, in login
self.credentials = self._credentials or self.__getCredentials()
File "/usr/local/lib/python2.7/site-packages/yowsup/layers/auth/layer_authentication.py", line 37, in __getCredentials
password = base64.b64decode(pb64)
File "/usr/local/lib/python2.7/base64.py", line 77, in b64decode
raise TypeError(msg)
TypeError: Incorrect padding