jdholtz / auto-southwest-check-in

A Python script that automatically checks in to your Southwest flight 24 hours beforehand.
GNU General Public License v3.0
463 stars 89 forks source link

Encountered Too Many Requests Error #319

Open edshaw42 opened 2 weeks ago

edshaw42 commented 2 weeks ago

Version

v8.1

Browser Version

130.0.6723.92

Description

Updated to v8.1, running locally on windows pc. I have a config monitoring 2 accounts, I am getting this at every run for each account. Help?

2024-11-10 11:59:34 DEBUG MainProcess[log:24]: Initialized the application 2024-11-10 11:59:34 DEBUG MainProcess[main:113]: Auto-Southwest Check-In v8.1 2024-11-10 11:59:34 DEBUG MainProcess[main:71]: Called with 0 arguments 2024-11-10 11:59:34 DEBUG MainProcess[config:143]: Initializing configuration file 2024-11-10 11:59:34 DEBUG MainProcess[config:172]: Reading the configuration file 2024-11-10 11:59:34 DEBUG MainProcess[config:185]: Reading configuration from environment variables 2024-11-10 11:59:34 DEBUG MainProcess[config:73]: Setting check fares to <CheckFaresOption.SAME_FLIGHT: 'same_flight'> 2024-11-10 11:59:34 DEBUG MainProcess[config:81]: A Healthchecks URL has been provided 2024-11-10 11:59:34 DEBUG MainProcess[config:85]: Setting retrieval interval to 4 hours 2024-11-10 11:59:34 DEBUG MainProcess[config:120]: Setting notification level to <NotificationLevel.NOTICE: 1> 2024-11-10 11:59:34 DEBUG MainProcess[config:155]: Creating configurations for 3 accounts 2024-11-10 11:59:34 DEBUG MainProcess[config:133]: Using 1 notification services 2024-11-10 11:59:34 DEBUG MainProcess[config:133]: Using 1 notification services 2024-11-10 11:59:34 DEBUG MainProcess[config:133]: Using 1 notification services 2024-11-10 11:59:34 INFO MainProcess[main:97]: Monitoring 3 accounts and 0 reservations

2024-11-10 11:59:35 DEBUG Process-3[reservation_monitor:65]: Acquiring lock... 2024-11-10 11:59:35 DEBUG Process-1[reservation_monitor:67]: Lock acquired 2024-11-10 11:59:35 DEBUG Process-1[reservation_monitor:205]: Retrieving reservations for account 2024-11-10 11:59:35 DEBUG Process-1[webdriver:130]: Starting webdriver for current session 2024-11-10 11:59:44 DEBUG Process-1[webdriver:152]: Using browser version: 130.0.6723.92 2024-11-10 11:59:44 DEBUG Process-1[webdriver:156]: Loading Southwest home page (this may take a moment) 2024-11-10 11:59:48 DEBUG Process-1[webdriver:104]: Logging into account to get a list of reservations and valid headers 2024-11-10 11:59:53 DEBUG Process-1[webdriver:187]: Waiting for headers_set to be set (timeout: 180 seconds) 2024-11-10 11:59:53 DEBUG Process-1[webdriver:201]: headers_set set successfully 2024-11-10 11:59:54 DEBUG Process-1[webdriver:187]: Waiting for login_request_id to be set (timeout: 180 seconds) 2024-11-10 11:59:54 DEBUG Process-1[webdriver:179]: Login response has been received 2024-11-10 11:59:55 DEBUG Process-1[webdriver:201]: login_request_id set successfully 2024-11-10 11:59:57 DEBUG Process-1[webdriver:257]: Logging in failed for an unknown reason 2024-11-10 11:59:57 DEBUG Process-1[reservation_monitor:220]: Encountered a Too Many Requests error while logging in. Skipping reservation retrieval 2024-11-10 12:00:00 DEBUG Process-1[reservation_monitor:78]: Lock released 2024-11-10 12:00:00 DEBUG Process-2[reservation_monitor:67]: Lock acquired

To Reproduce

Run the script with 3 accounts being monitored.

Expected Behavior

No response

Relevant logs and program output

2024-11-10 11:59:34 DEBUG MainProcess[log:24]: Initialized the application
2024-11-10 11:59:34 DEBUG MainProcess[main:113]: Auto-Southwest Check-In v8.1
2024-11-10 11:59:34 DEBUG MainProcess[main:71]: Called with 0 arguments
2024-11-10 11:59:34 DEBUG MainProcess[config:143]: Initializing configuration file
2024-11-10 11:59:34 DEBUG MainProcess[config:172]: Reading the configuration file
2024-11-10 11:59:34 DEBUG MainProcess[config:185]: Reading configuration from environment variables
2024-11-10 11:59:34 DEBUG MainProcess[config:73]: Setting check fares to <CheckFaresOption.SAME_FLIGHT: 'same_flight'>
2024-11-10 11:59:34 DEBUG MainProcess[config:81]: A Healthchecks URL has been provided
2024-11-10 11:59:34 DEBUG MainProcess[config:85]: Setting retrieval interval to 4 hours
2024-11-10 11:59:34 DEBUG MainProcess[config:120]: Setting notification level to <NotificationLevel.NOTICE: 1>
2024-11-10 11:59:34 DEBUG MainProcess[config:155]: Creating configurations for 3 accounts
2024-11-10 11:59:34 DEBUG MainProcess[config:133]: Using 1 notification services
2024-11-10 11:59:34 DEBUG MainProcess[config:133]: Using 1 notification services
2024-11-10 11:59:34 DEBUG MainProcess[config:133]: Using 1 notification services
2024-11-10 11:59:34 INFO MainProcess[main:97]: Monitoring 3 accounts and 0 reservations

2024-11-10 11:59:35 DEBUG Process-3[reservation_monitor:65]: Acquiring lock...
2024-11-10 11:59:35 DEBUG Process-1[reservation_monitor:67]: Lock acquired
2024-11-10 11:59:35 DEBUG Process-1[reservation_monitor:205]: Retrieving reservations for account
2024-11-10 11:59:35 DEBUG Process-1[webdriver:130]: Starting webdriver for current session
2024-11-10 11:59:44 DEBUG Process-1[webdriver:152]: Using browser version: 130.0.6723.92
2024-11-10 11:59:44 DEBUG Process-1[webdriver:156]: Loading Southwest home page (this may take a moment)
2024-11-10 11:59:48 DEBUG Process-1[webdriver:104]: Logging into account to get a list of reservations and valid headers
2024-11-10 11:59:53 DEBUG Process-1[webdriver:187]: Waiting for headers_set to be set (timeout: 180 seconds)
2024-11-10 11:59:53 DEBUG Process-1[webdriver:201]: headers_set set successfully
2024-11-10 11:59:54 DEBUG Process-1[webdriver:187]: Waiting for login_request_id to be set (timeout: 180 seconds)
2024-11-10 11:59:54 DEBUG Process-1[webdriver:179]: Login response has been received
2024-11-10 11:59:55 DEBUG Process-1[webdriver:201]: login_request_id set successfully
2024-11-10 11:59:57 DEBUG Process-1[webdriver:257]: Logging in failed for an unknown reason
2024-11-10 11:59:57 DEBUG Process-1[reservation_monitor:220]: Encountered a Too Many Requests error while logging in. Skipping reservation retrieval
2024-11-10 12:00:00 DEBUG Process-1[reservation_monitor:78]: Lock released
2024-11-10 12:00:00 DEBUG Process-2[reservation_monitor:67]: Lock acquired

Additional context

No response

dmytrokoren commented 1 week ago

Try the develop branch

nuftjedi commented 1 week ago

Getting the same errors, even on the dev branch. SImilar setup to the OP, standalone windows PC running 8.1 and now 8.1 dev.

rscheurman commented 6 days ago

I was able to successfully check in today using the develop branch. My setup is running on WSL.

nuftjedi commented 2 days ago

still unresolved for me. tried fresh installs of both prod and dev branches over the weekend and again this morning.

2024-11-25 11:23:22 DEBUG MainProcess[log:24]: Initialized the application 2024-11-25 11:23:22 DEBUG MainProcess[main:113]: Auto-Southwest Check-In v8.1 2024-11-25 11:23:22 DEBUG MainProcess[main:71]: Called with 0 arguments 2024-11-25 11:23:22 DEBUG MainProcess[config:143]: Initializing configuration file 2024-11-25 11:23:22 DEBUG MainProcess[config:172]: Reading the configuration file 2024-11-25 11:23:22 DEBUG MainProcess[config:185]: Reading configuration from environment variables 2024-11-25 11:23:22 DEBUG MainProcess[config:73]: Setting check fares to <CheckFaresOption.SAME_FLIGHT: 'same_flight'> 2024-11-25 11:23:22 DEBUG MainProcess[config:85]: Setting retrieval interval to 24 hours 2024-11-25 11:23:22 DEBUG MainProcess[config:120]: Setting notification level to <NotificationLevel.INFO: 2> 2024-11-25 11:23:22 DEBUG MainProcess[config:133]: Using 1 notification services 2024-11-25 11:23:22 DEBUG MainProcess[config:155]: Creating configurations for 2 accounts 2024-11-25 11:23:22 DEBUG MainProcess[config:162]: Creating configurations for 0 reservations 2024-11-25 11:23:22 INFO MainProcess[main:97]: Monitoring 2 accounts and 0 reservations 2024-11-25 11:23:24 DEBUG Process-2[reservation_monitor:68]: Acquiring lock... 2024-11-25 11:23:24 DEBUG Process-2[reservation_monitor:70]: Lock acquired 2024-11-25 11:23:24 DEBUG Process-2[reservation_monitor:209]: Retrieving reservations for account (max retries: 1) 2024-11-25 11:23:24 DEBUG Process-2[webdriver:131]: Starting webdriver for current session 2024-11-25 11:23:24 DEBUG Process-1[reservation_monitor:68]: Acquiring lock... 2024-11-25 11:23:35 DEBUG Process-2[webdriver:154]: Using browser version: 130.0.6723.70 2024-11-25 11:23:35 DEBUG Process-2[webdriver:158]: Loading Southwest check-in page (this may take a moment) 2024-11-25 11:23:55 DEBUG Process-2[webdriver:105]: Logging into account to get a list of reservations and valid headers 2024-11-25 11:24:02 DEBUG Process-2[webdriver:188]: Waiting for headers_set to be set (timeout: 180 seconds) 2024-11-25 11:24:02 DEBUG Process-2[webdriver:202]: headers_set set successfully 2024-11-25 11:24:02 DEBUG Process-2[webdriver:188]: Waiting for login_request_id to be set (timeout: 180 seconds) 2024-11-25 11:24:03 DEBUG Process-2[webdriver:180]: Login response has been received 2024-11-25 11:24:03 DEBUG Process-2[webdriver:202]: login_request_id set successfully 2024-11-25 11:24:05 DEBUG Process-2[webdriver:258]: Logging in failed for an unknown reason 2024-11-25 11:24:05 DEBUG Process-2[reservation_monitor:238]: Encountered an error (status: 429) while logging in. Retrying 2024-11-25 11:24:05 DEBUG Process-2[reservation_monitor:242]: Waiting for 20 seconds before retrying 2024-11-25 11:24:25 DEBUG Process-2[webdriver:131]: Starting webdriver for current session 2024-11-25 11:24:28 DEBUG Process-2[webdriver:154]: Using browser version: 130.0.6723.70 2024-11-25 11:24:28 DEBUG Process-2[webdriver:158]: Loading Southwest check-in page (this may take a moment) 2024-11-25 11:24:37 DEBUG Process-2[webdriver:105]: Logging into account to get a list of reservations and valid headers 2024-11-25 11:24:41 DEBUG Process-2[webdriver:188]: Waiting for headers_set to be set (timeout: 180 seconds) 2024-11-25 11:24:41 DEBUG Process-2[webdriver:202]: headers_set set successfully 2024-11-25 11:24:42 DEBUG Process-2[webdriver:188]: Waiting for login_request_id to be set (timeout: 180 seconds) 2024-11-25 11:24:42 DEBUG Process-2[webdriver:180]: Login response has been received 2024-11-25 11:24:43 DEBUG Process-2[webdriver:202]: login_request_id set successfully 2024-11-25 11:24:45 DEBUG Process-2[webdriver:258]: Logging in failed for an unknown reason 2024-11-25 11:24:45 DEBUG Process-2[reservation_monitor:245]: Error (status: 429) persists. Skipping reservation retrieval 2024-11-25 11:26:28 DEBUG Process-1[reservation_monitor:70]: Lock acquired 2024-11-25 11:26:28 DEBUG Process-2[reservation_monitor:81]: Lock released 2024-11-25 11:26:28 DEBUG Process-1[reservation_monitor:209]: Retrieving reservations for account (max retries: 1) 2024-11-25 11:26:28 DEBUG Process-1[webdriver:131]: Starting webdriver for current session 2024-11-25 11:26:28 DEBUG Process-2[reservation_monitor:154]: Sleeping for 86215 seconds 2024-11-25 11:26:31 DEBUG Process-1[webdriver:154]: Using browser version: 130.0.6723.70 2024-11-25 11:26:31 DEBUG Process-1[webdriver:158]: Loading Southwest check-in page (this may take a moment) 2024-11-25 11:26:39 DEBUG Process-1[webdriver:105]: Logging into account to get a list of reservations and valid headers 2024-11-25 11:26:44 DEBUG Process-1[webdriver:188]: Waiting for headers_set to be set (timeout: 180 seconds) 2024-11-25 11:26:44 DEBUG Process-1[webdriver:202]: headers_set set successfully 2024-11-25 11:26:44 DEBUG Process-1[webdriver:188]: Waiting for login_request_id to be set (timeout: 180 seconds) 2024-11-25 11:26:45 DEBUG Process-1[webdriver:180]: Login response has been received 2024-11-25 11:26:45 DEBUG Process-1[webdriver:202]: login_request_id set successfully 2024-11-25 11:26:47 DEBUG Process-1[webdriver:258]: Logging in failed for an unknown reason 2024-11-25 11:26:47 DEBUG Process-1[reservation_monitor:238]: Encountered an error (status: 429) while logging in. Retrying 2024-11-25 11:26:47 DEBUG Process-1[reservation_monitor:242]: Waiting for 20 seconds before retrying 2024-11-25 11:27:07 DEBUG Process-1[webdriver:131]: Starting webdriver for current session 2024-11-25 11:27:09 DEBUG Process-1[webdriver:154]: Using browser version: 130.0.6723.70 2024-11-25 11:27:09 DEBUG Process-1[webdriver:158]: Loading Southwest check-in page (this may take a moment) 2024-11-25 11:27:16 DEBUG Process-1[webdriver:105]: Logging into account to get a list of reservations and valid headers 2024-11-25 11:27:22 DEBUG Process-1[webdriver:188]: Waiting for headers_set to be set (timeout: 180 seconds) 2024-11-25 11:27:22 DEBUG Process-1[webdriver:202]: headers_set set successfully 2024-11-25 11:27:22 DEBUG Process-1[webdriver:188]: Waiting for login_request_id to be set (timeout: 180 seconds) 2024-11-25 11:27:22 DEBUG Process-1[webdriver:180]: Login response has been received 2024-11-25 11:27:23 DEBUG Process-1[webdriver:202]: login_request_id set successfully 2024-11-25 11:27:25 DEBUG Process-1[webdriver:258]: Logging in failed for an unknown reason 2024-11-25 11:27:25 DEBUG Process-1[reservation_monitor:245]: Error (status: 429) persists. Skipping reservation retrieval 2024-11-25 11:27:25 DEBUG Process-1[reservation_monitor:81]: Lock released 2024-11-25 11:27:25 DEBUG Process-1[reservation_monitor:154]: Sleeping for 86159 seconds