Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid Request or Credentials (-1501) when requestTimeMils set to 0 in login function (L530) #109

Open
fernsehkind opened this issue Apr 3, 2023 · 3 comments

Comments

@fernsehkind
Copy link

fernsehkind commented Apr 3, 2023

If I revert the requestTimeMils (as introduced in #698100d123be3387f598dea3b60398c7952c95d9) back to int(round(time.time() * 1000)) in the login function, the login and the device L530 works correctly. In other functions (color, info, state, ...) the L530 device does not seem to have any problem with the 0 value at requestTimeMils.

My P110 works correctly with requestTimeMils set to 0 and int(round(time.time() * 1000)).
My L530 only works correctly when requestTimeMils is set to int(round(time.time() * 1000)).

P110 (3 devices): SW V1.1.6, HW: 1.0
L530 (1 device): SW V1.2.2, HW: 1.0.0

Other users (like @DaneelReventelov) seem to have the same problem. I'm not quite sure what the correct solution for this problem is because I have only a few devices with the same SW version and I'm not sure what happens to other device types and older software versions.

@beatty12
Copy link

int(round(time.time() * 1000)) fixed my issues (P100).
THANK YOU SO MUCH FOR POSTING THIS!

@fsnuxer
Copy link

fsnuxer commented May 15, 2023

same for me for my P100 SW V1.4.16 HW V1.20.0
error when requestTimeMils set to 0
ok when requestTimeMils set to int(round(time.time() * 1000))

@lanpa
Copy link

lanpa commented Jul 5, 2023

confirmed the fix with P105 1.3.2 Build 20210122 Rel. 57063:

git checkout a93aadea
python setup.py install

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants