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

Can not login to server #5

Open
vepeti opened this issue Feb 21, 2018 · 1 comment
Open

Can not login to server #5

vepeti opened this issue Feb 21, 2018 · 1 comment

Comments

@vepeti
Copy link

vepeti commented Feb 21, 2018

Hello.

I try to connect to my urbackup server, but I can't. My code looks like:

import urbackup_api
server = urbackup_api.urbackup_server("http://10.10.10.10:55414/x", "username", "xxxxxx")
server.get_client_authkey("client_host")

The first error is the readall() in line 87. From Python 3.5, this is not a valid function.
I changed this, but now I get always: Username does not exist
Tried to print the salt variable from line 81:
{'error': 1}

Do you have any idea, or can you help me?
Thanks in advance.

@YWatchman
Copy link

It works using the code downbelow in Python 3.7 in my fixed/updated version.

#!/usr/bin/env python
# -*- encoding: utf-8 -*-

from urbackup_api import urbackup_server

s = urbackup_server('http://185.233.xxx.xxx:55414/x', 'api_test', 'supersecret')
s.login()
print(s.get_client_authkey('nog.een.machine'))

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

2 participants