Yeah I thought so too. All I'm trying to do is log in, I was going to add multiple camera choices to the Cura plugin now that I have an extra camera, but it wouldn't let me log in. It used to work, which is the oddity. If I remove my user it seems to work ok. I tested in Raspberry Pi and Ubuntu.
Ok I have tested it and it did not work in deed. Problem is timing between loginRequired and response from first command where we fetched the session. So session required for login was set after login which fails for using wrong session id in authentification. See this socket communication:
Comments
Is password/user creation in api because creating an user in gui is no problem. If so what is your call to find error.
Solution is to use the session already provided in the loginRequired event so we definitively use the correct one.
I have updated the demo accordingly.