Closed rufus210 closed 4 months ago
2024-03-14 10:27:24 DEBUG Process-2[webdriver:155]: Waiting for headers_set to be set
The reason this is happening is because it never receives the headers. This would cause the lock to never release, which results in the issues you are seeing. This is most likely the issue seen in #248.
Additionally, I will add a timeout for waiting for the headers so it doesn't totally halt the script if the headers never come.
@rufus210 I thought more about adding a timeout and I'm not sure it is the best idea. For example, when it times out it will need to skip retrieving/checking reservations (as the headers will be invalid) which isn't bad. However, the timeout can also happen when refreshing the headers right before checking in to ensure the script has a fresh session. In this case, it wouldn't be a good idea to ignore the error and continue with the checkin.
One idea I have would be to send a notification to users when this happens so they know the check-in will probably fail (or it can completely stop the check-in and tell the user to do so manually). Let me know your thoughts on this.
Hey @rufus210, any thoughts on my comment above?
Ooof, this happened to me. I would appreciate a notification.
One idea I have would be to send a notification to users when this happens so they know the check-in will probably fail (or it can completely stop the check-in and tell the user to do so manually). Let me know your thoughts on this.
This would be awesome. Similar issue happened to me & I didn't realize the check-in was going to fail until too late.
The script will now timeout if this happens to prevent a deadlock (added in #281). A notice notification will be sent as well. The actual issue of it timing out is tracked in #248.
Version
Auto-Southwest Check-In v7.3
Browser Version
google-chrome-stable 123.0.6312.86-1
Description
The script missed checking in to a flight for me and looking at the log it hasn't done anything for quite a while. From the logs reservation_monitor acquired a lock but never released it, causing later processing to fail.
To Reproduce
Just running the script normally.
Expected Behavior
Process the trips and check in for them
Relevant logs and program output
Additional context
No response