Skip to content

Invalid session in request data (NVR) #6

@sbluhm

Description

@sbluhm

Hi,

running this on a Dahua NVR, I get this error:

dahua_rpc.RequestError: {'error': {'code': 287637505, 'message': 'Invalid session in request data!'}, 'result': False}

Steps to reproduce:

from dahua_rpc import DahuaRpc
dahua = DahuaRpc(host="nvr.example.com", username="admin", password="admin")
dahua.login()

print(dahua.current_time())

Issue happens on any request. I had a look at the JSON request but couldn't find anything obvious.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions