Skip to content

Cannot connect to hydraserver using RemoteJSONConnection #10

Description

@robhoney

The RemoteJSONConnection example does not seem to work. I have tried both the version from pip and using the latest version (updated yesterday). Trying this:

import hydra_client as hc

hb_conn = hc.RemoteJSONConnection(url='http://localhost:8080/json')

hb_conn.login(username='root', password='')

gives me this:

Traceback (most recent call last):
File "base.py", line 19, in
hb_conn.login(username='root', password='')
File "C:\Users\honeywillrs\AppData\Local\Continuum\anaconda3\lib\site-packages\hydra_client\connection\remote_json_connection.py", line 112, in login
resp = self.call('login', login_params)
File "C:\Users\honeywillrs\AppData\Local\Continuum\anaconda3\lib\site-packages\hydra_client\connection\remote_json_connection.py", line 93, in call
raise RequestError(err)
hydra_client.exception.RequestError: {'message': "Client.AuthenticationError:Invalid authentication request for HydraError({'message': b'root', 'code': '0000'})", 'code': '200'}>

This was using Windows 10 and installed hydraserver via pip.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions