Error a while after connect
Around 40 seconds after I connect (/L) , I'm receiving an error on yowsup-cli. It doesn't matter whether I've send or received any messages during this period. This error occurs after 0-70 seconds after I connect.
[root@server1 ~]# yowsup-cli demos -y -l number:pass
Yowsup Cli client
Type /help for available commands
Auth: Logged in!
[connected]:
[connected]:Traceback (most recent call last):
File "/usr/bin/yowsup-cli", line 5, in
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
I'm still getting this error, and couldn't fix it myself. Is anybody else getting it?
i got this error too.
it started after i reset my sms code from my iphone and then get the password (using iBrowser) from it to try to use both devices (iphone and yowsup) at the same time!
does anyone can help?
You can't login with yowsup and device at the same time. It will disconnect you.
now im using another whatsapp number (no simultaneous devices) and still getting this error
anyone?
I still have the same problem, and it's not related to any device.. 40 seconds after I connect I do get the same error.
I didn't connect for around 15 days, and today I tried it again. Same error.
I have this same problem. In my case, i modified the cli example to read commands off a redis queue. It works on my mac but when i run it in my openvz container using the same python and requirements versions i get an error EBADF. It seems to be related to asyncore and the os.
I think i've figured this out. Yowsup needs some time to setup (on some os,cpu,mem config...). If i set my program to sleep for 2 seconds time.sleep(2) everything works, if i set it to wait longer it fails, actually i'm not sure if this solves it.
Same problem here...
[offline]:/L
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python3.4/threading.py", line 920, in _bootstrap_inner
self.run()
File "/usr/lib/python3.4/threading.py", line 868, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.4/site-packages/yowsup/demos/cli/cli.py", line 151, in startInputThread
wait = self.execCmd(cmd)
File "/usr/lib/python3.4/site-packages/yowsup/demos/cli/cli.py", line 135, in execCmd
return self.doExecCmd(lambda :targetFn(*args))
File "/usr/lib/python3.4/site-packages/yowsup/demos/cli/cli.py", line 138, in doExecCmd
return fn()
File "/usr/lib/python3.4/site-packages/yowsup/demos/cli/cli.py", line 135, in <lambda>
return self.doExecCmd(lambda :targetFn(*args))
File "/usr/lib/python3.4/site-packages/yowsup/demos/cli/layer.py", line 305, in L
return self.login(*self.getProp(YowAuthenticationProtocolLayer.PROP_CREDENTIALS))
File "/usr/lib/python3.4/site-packages/yowsup/demos/cli/layer.py", line 315, in login
self.broadcastEvent(connectEvent)
File "/usr/lib/python3.4/site-packages/yowsup/layers/__init__.py", line 77, in broadcastEvent
self.__lower.broadcastEvent(yowLayerEvent)
File "/usr/lib/python3.4/site-packages/yowsup/layers/__init__.py", line 77, in broadcastEvent
self.__lower.broadcastEvent(yowLayerEvent)
File "/usr/lib/python3.4/site-packages/yowsup/layers/__init__.py", line 77, in broadcastEvent
self.__lower.broadcastEvent(yowLayerEvent)
File "/usr/lib/python3.4/site-packages/yowsup/layers/__init__.py", line 77, in broadcastEvent
self.__lower.broadcastEvent(yowLayerEvent)
File "/usr/lib/python3.4/site-packages/yowsup/layers/__init__.py", line 77, in broadcastEvent
self.__lower.broadcastEvent(yowLayerEvent)
File "/usr/lib/python3.4/site-packages/yowsup/layers/__init__.py", line 72, in broadcastEvent
if self.__lower and not self.__lower.onEvent(yowLayerEvent):
File "/usr/lib/python3.4/site-packages/yowsup/layers/network/layer.py", line 27, in onEvent
self.connect(self.getProp(self.__class__.PROP_ENDPOINT))
File "/usr/lib/python3.4/asyncore.py", line 348, in connect
raise OSError(err, errorcode[err])
OSError: [Errno 9] EBADF
Any news about this?
Getting this error too after updating to latest version.
Could it be that it affects only specific versions of python, I'm on python 2.6 like the OP, and I see python 3.4 above.
Also https://github.com/tgalal/yowsup/issues/769 suggests an issue that seems to be broken in python 2.6
I too am getting this error, putting the loop in a try / except doesn't work. My suspicion is that it has something to do with OutgoingAckProtocolEntity. If I can't find a solution, I will try supervise and just restart on socket.error: [Errno 9] Bad file descriptor.