Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in yowsup-cli since latest update. #947

Closed
Agandir opened this issue Jul 21, 2015 · 3 comments
Closed

Error in yowsup-cli since latest update. #947

Agandir opened this issue Jul 21, 2015 · 3 comments

Comments

@Agandir
Copy link

Agandir commented Jul 21, 2015

Hey.

After the latest update, i installed yowsup on a new server, but i get this error when i perform the quick login "/L"

Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 810, in **bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 763, in run
self.__target(_self.__args, _self.__kwargs)
File "build/bdist.linux-x86_64/egg/yowsup/demos/cli/cli.py", line 152, in startInputThread
wait = self.execCmd(cmd)
File "build/bdist.linux-x86_64/egg/yowsup/demos/cli/cli.py", line 136, in execCmd
return self.doExecCmd(lambda :targetFn(_args))
File "build/bdist.linux-x86_64/egg/yowsup/demos/cli/cli.py", line 139, in doExecCmd
return fn()
File "build/bdist.linux-x86_64/egg/yowsup/demos/cli/cli.py", line 136, in
return self.doExecCmd(lambda :targetFn(_args))
File "build/bdist.linux-x86_64/egg/yowsup/demos/cli/layer.py", line 404, in L
return self.login(self.getProp(YowAuthenticationProtocolLayer.PROP_CREDENTIALS))
File "build/bdist.linux-x86_64/egg/yowsup/demos/cli/layer.py", line 414, in login
self.broadcastEvent(connectEvent)
File "build/bdist.linux-x86_64/egg/yowsup/layers/__init
.py", line 72, in broadcastEvent
if self.lower and not self.__lower.onEvent(yowLayerEvent):
File "build/bdist.linux-x86_64/egg/yowsup/layers/__init
.py", line 178, in onEvent
stopEvent = stopEvent or s.onEvent(yowLayerEvent)
File "build/bdist.linux-x86_64/egg/yowsup/layers/auth/layer_authentication.py", line 41, in onEvent
self.credentials = self.__getCredentials()
File "build/bdist.linux-x86_64/egg/yowsup/layers/auth/layer_authentication.py", line 34, in __getCredentials
password = base64.b64decode(pb64)
File "/usr/lib/python2.7/base64.py", line 76, in b64decode
raise TypeError(msg)
TypeError: Incorrect padding

And i have no idea honestly on what to do, so please, give me some help ;)

@rami-dabain
Copy link

wrong password
On Jul 21, 2015 8:55 PM, "Agandir" notifications@github.com wrote:

Hey.

After the latest update, i installed yowsup on a new server, but i get
this error:

root@NewMaster:~# yowsup-cli demos --yowsup --login
8613938752474:DR2cuHUxsbY08+eMCC0W/6XERcQ
Yowsup Cli client

Type /help for available commands

Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 810, in

_bootstrap_inner self.run() File "/usr/lib/python2.7/threading.py", line
763, in run self.__target(self.__args, *self.__kwargs) File
"build/bdist.linux-x86_64/egg/yowsup/demos/cli/cli.py", line 152, in
startInputThread wait = self.execCmd(cmd) File
"build/bdist.linux-x86_64/egg/yowsup/demos/cli/cli.py", line 136, in
execCmd return self.doExecCmd(lambda :targetFn(args)) File
"build/bdist.linux-x86_64/egg/yowsup/demos/cli/cli.py", line 139, in
doExecCmd return fn() File
"build/bdist.linux-x86_64/egg/yowsup/demos/cli/cli.py", line 136, in return
self.doExecCmd(lambda :targetFn(args)) File
"build/bdist.linux-x86_64/egg/yowsup/demos/cli/layer.py", line 404, in L
return
self.login(_self.getProp(YowAuthenticationProtocolLayer.PROP_CREDENTIALS))
File "build/bdist.linux-x86_64/egg/yowsup/demos/cli/layer.py", line 414, in
login self.broadcastEvent(connectEvent) File
"build/bdist.linux-x86_64/egg/yowsup/layers/_init.py", line 72, in
broadcastEvent
if self.
*lower and not self.__lower.onEvent(yowLayerEvent): File
"build/bdist.linux-x86_64/egg/yowsup/layers/_init.py", line 178, in
onEvent
stopEvent = stopEvent or s.onEvent(yowLayerEvent)
File
"build/bdist.linux-x86_64/egg/yowsup/layers/auth/layer_authentication.py",
line 41, in onEvent
self.credentials = self.__getCredentials()
File
"build/bdist.linux-x86_64/egg/yowsup/layers/auth/layer_authentication.py",
line 34, in __getCredentials
password = base64.b64decode(pb64)
File "/usr/lib/python2.7/base64.py", line 76, in b64decode
raise TypeError(msg)
TypeError: Incorrect padding

And i have no idea honestly on what to do, so please, give me some help ;)


Reply to this email directly or view it on GitHub
#947.

@tgalal
Copy link
Owner

tgalal commented Jul 21, 2015

your password is missing = sign at the end

@tgalal tgalal closed this as completed Jul 21, 2015
@Agandir
Copy link
Author

Agandir commented Jul 21, 2015

thanks. Usually for the wrong password i ever get this error message and that's why i opened the issue:

general: Login Failed, reason: not-authorized
Auth Error, reason not-authorized

But now i noticed that you are correct, was simply a copy/paste mistake missing the "="

Regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants