hzulla / tolino-python

Access to tolino cloud with Python 3
GNU Lesser General Public License v2.1
78 stars 35 forks source link

tolinocloud.TolinoException: register <HARDWARE_ID> failed. #26

Closed mklemm2 closed 2 years ago

mklemm2 commented 6 years ago

Hi,

I wanted to give it a try but it seems like it's currently not working for Hugendubel:

./tolinoclient.py --partner 13 --user <LOGIN> --password <PASSWORD> inventory
Traceback (most recent call last):
  File "./tolinoclient.py", line 161, in <module>
    args.func(args)
  File "./tolinoclient.py", line 20, in inventory
    c.register()
  File "/<PATH>/tolino-python/tolinocloud.py", line 335, in register
    raise TolinoException('register {} failed.'.format(TolinoCloud.hardware_id))
tolinocloud.TolinoException: register <HARDWARE_ID> failed.
theopenbit commented 6 years ago

hmm, the TolinoCloud.hardware_id is a pseudo id. Maybe Hugendubel don't like it. Inspect the network traffic if you are login with your browser. There must be a header with a field hardware_id in the request to https://bosh.pageplace.de/bosh/rest/registerhw Put this id in line 326 of the file tolinocloud.py instead of TolinoCloud.hardware_id and give it a try

colorchestra commented 6 years ago

I have the same problem. Unfortunately I couldn't get my browser to make a request to https://bosh.pageplace.de/bosh/rest/registerhw, but (if that works as well) a request to https://bosh.pageplace.de/bosh/rest/upload had a hardware_id header. I changed _hardware_id() in tolinocloud.py to always return that ID, but to no avail, the error stays the same.

theopenbit commented 6 years ago

what does the hardware_id in the traffic looks like, if using the browser?

hzulla commented 2 years ago

PSA: Hello there. I have stopped maintaining this library, as I do not own a Tolino anymore. If this library is still useful to you, I'd want to hand it over to a new maintainer. Thank you. As this issue is outdated, I'm closing it.