doccano-client icon indicating copy to clipboard operation
doccano-client copied to clipboard

can not login

Open janelu9 opened this issue 3 years ago • 2 comments

HTTPConnectionPool(host='127.0.0.1', port=8000): Max retries exceeded with url: /v1/auth/login/ (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f4c07cb8280>: Failed to establish a new connection: [Errno 111] Connection refused'))

janelu9 avatar Oct 20 '22 07:10 janelu9

Could you please paste code?

Hironsan avatar Oct 20 '22 08:10 Hironsan

should look something like.

base_url = 'http....'
username = 'blah'
password = 'b1ah'

client = DoccanoClient(
                base_url=base_url,
                verify=None)

client.login(username=username, password=password)
...

If you are still having issues, can you write the version of doccano-client you are using?

david-engelmann avatar Oct 20 '22 18:10 david-engelmann