-
-
Notifications
You must be signed in to change notification settings - Fork 88
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
Failed to check in due to local time being ahead #235
Comments
Hmmm, I reran the bot and it actually succeeded the next time. Wonder if there should be some retry mechanism? |
Hey, thanks for filing this issue. Someone else also reached this issue here. A
The check-in will try 20 times (with the logs, you can see it took 35 seconds to fail) when it encounters an unsuccessful request but its unclear why the issue is not reproducible when you restart the script. |
any ideas for logging to help debug the issue? I have some more flights coming up in 2 weeks. |
Could you send the log of the run that failed (in the |
Hmm this is all I see in those logs:
|
What operating system are you on? |
windows 11 pro Version 10.0.22621 Build 22621 |
Ah, the module that logs the requests was not updated when I fixed logging on Windows, so it hasn't been logging this whole time on Windows...ha. Well, that will be fixed in v7.3. If you (or someone else) gets this issue again, the debug output should be a lot more helpful. |
Haha, well glad we helped find a "bug"! I'll update to 7.3 and let you know how it goes in a few weeks. |
I am having a very similar issue Here is my dump from the log file Logs2024-03-05 19:10:52 DEBUG MainProcess[log:23]: Initialized the application this was working for me too then suddenly stop. I upgrade to latest version to see if it would resolve the issue. |
I think I found the reason. My windows time was not synced. About 1 minute off. Think this isn't an issue and was due to environment. Kind of silly windows doesn't have an option to stay in-sync for time, lol. |
That would explain the 400 status code. If the logging was working at this time, it probably would have shown “too early to check in”. Do you want to close this issue as a user error or do you have an idea of a programmatic way of solving it? One option could be to communicate with an external time server, but that seems overkill. Detecting that it’s too early won’t do much too because, if the time is wrong, the script won’t know how off the time is. |
Hey @aaron-pham, do you have any thoughts on my reply above? |
I kind of like checking the timeserver for our time - we're already making network calls and whatnot. It would be a nice layer of protection but possibly adds some complexity. I'm pretty busy right now - so maybe we can close this and perhaps look into this another time. A basic thing would be checking & logging it which could help with debugging, but as you said the 400s would probably give you an idea. It would be slightly hard to track down without explicit logs still since they would show the "proper" time. |
I have a working implementation of using an NTP server (and falling back to getting the system’s local time on error) on my local machine. It actually is very simple to implement because the I’ll implement it on another branch so it can be tested in action. This feature may also help fix #252. |
Fixes #235. Instead of relying on the computer's local time (which may be off), the time is fetched from an NTP server when possible. This ensures the script performs check-ins at the correct times even when the local time is incorrect.
I decided to merge this into the develop branch as I was able to test it (not a check-in, but the NTP fetch is used in other places so I tested through that). Thanks for the suggestion @aaron-pham. This should fix the issue you received in future check-ins. |
Fixes jdholtz#235. Instead of relying on the computer's local time (which may be off), the time is fetched from an NTP server when possible. This ensures the script performs check-ins at the correct times even when the local time is incorrect.
Version
7.2
Browser Version
121.0.6167.189
Description
Hey, was mainly using this app to track prices, but noticed I had a failed check-in. Any idea what went on? The price check component was working flawlessly.
The logs are attached below.
To Reproduce
Expected Behavior
Check-in is successful.
Relevant logs and program output
Additional context
No response
The text was updated successfully, but these errors were encountered: