Giter VIP home page Giter VIP logo

Comments (28)

samdatkins avatar samdatkins commented on September 14, 2024 1

At first I was getting the same 429 error running locally, but it ran successfully once I changed the user agent string in webdriver.py to the actual one that my Chrome browser supplies.

Actually, there was a similar issue to this one(#58). I just removed the User Agent altogether and that seemed to work for everyone who was having issues in that thread. However, the change only resides in the develop branch currently. For anyone having issues, can you pull the latest develop image (use the :develop tag) and see if you are still running into the same issue?

Switching to the develop image fixed it for me, and I’ve got 5 or 6 users in one config/container!

from auto-southwest-check-in.

jdholtz avatar jdholtz commented on September 14, 2024 1

Thanks for testing with the develop branch everyone. I will close this issue and hopefully release the next version soon!

from auto-southwest-check-in.

samdatkins avatar samdatkins commented on September 14, 2024

In case it's relevant, here's the result I get from within docker when I execute chromedriver:

Starting ChromeDriver 110.0.5481.177 (f34f7ab2d4ca4ad498ef42aeba4f4eb2c1392d63-refs/branch-heads/5481@{#1239}) on port 9515...```

from auto-southwest-check-in.

jdholtz avatar jdholtz commented on September 14, 2024

I am also getting this error in a Docker container. What's strange is that I am not getting the error when running it locally though (with the same ChromeDriver version). However, I also had a check-in fail this morning too, both in the Docker image and running it locally (on the POST request).

I'll look into this and see what is going on.

from auto-southwest-check-in.

derrick-tao avatar derrick-tao commented on September 14, 2024

I had 3 checkins scheduled all on the same flight however only 1 was successfully checked in. This is my first time using so I'm not sure how well multiple checkins worked in the past. Maybe southwest servers are trying to stop simultaneous requests to checkin at the same time? here's my log line Failed to make request: Too Many Requests 429.

edit: i'm using docker if that makes a difference

from auto-southwest-check-in.

jdholtz avatar jdholtz commented on September 14, 2024

Something with Southwest has definitely changed because simultaneous check-ins did work in the past.

from auto-southwest-check-in.

jdholtz avatar jdholtz commented on September 14, 2024

Can anyone get it to work by running it locally (not with Docker)?

from auto-southwest-check-in.

BDO811 avatar BDO811 commented on September 14, 2024

from auto-southwest-check-in.

PaulMcCarthy401 avatar PaulMcCarthy401 commented on September 14, 2024

At first I was getting the same 429 error running locally, but it ran successfully once I changed the user agent string in webdriver.py to the actual one that my Chrome browser supplies.

from auto-southwest-check-in.

derrick-tao avatar derrick-tao commented on September 14, 2024

Additional data points: Without changing anything in the code, I was able to checkin to 3 passengers all on the same flight using 3 individual docker containers. While this is a quick workaround, the issue with simultaneous checkin on the same docker container mentioned earlier probably still exist.

from auto-southwest-check-in.

jdholtz avatar jdholtz commented on September 14, 2024

At first I was getting the same 429 error running locally, but it ran successfully once I changed the user agent string in webdriver.py to the actual one that my Chrome browser supplies.

Actually, there was a similar issue to this one(#58). I just removed the User Agent altogether and that seemed to work for everyone who was having issues in that thread. However, the change only resides in the develop branch currently. For anyone having issues, can you pull the latest develop image (use the :develop tag) and see if you are still running into the same issue?

from auto-southwest-check-in.

BDO811 avatar BDO811 commented on September 14, 2024

from auto-southwest-check-in.

jdholtz avatar jdholtz commented on September 14, 2024

If you have docker installed, just run docker pull jdholtz/auto-southwest-check-in:develop. If you have cloned the repository with Git, do git pull && git checkout develop.

from auto-southwest-check-in.

zyonse avatar zyonse commented on September 14, 2024

Develop branch also fixed this issue for me.

from auto-southwest-check-in.

himnim avatar himnim commented on September 14, 2024

Seems this was implemented in 4.0 which I'm running in Docker, but I received the error early this morning at a random time (config loaded and successful 5 hours prior). I have retrieval interval set to 1 while testing - would that mean it was logging into accounts and refreshing every 1h and this was just 1 failure over ~8 hours/attempts? Happy to grab any logs needed.

from auto-southwest-check-in.

jdholtz avatar jdholtz commented on September 14, 2024

Is it a recurring issue @himnim? If the retrieval interval is 1, that means it checks every account/flight every hour

from auto-southwest-check-in.

himnim avatar himnim commented on September 14, 2024

According to the logs, it only happened once. Could chalk it off as a one-off - I'll keep monitoring and let you know if it happens more frequently.

from auto-southwest-check-in.

jdholtz avatar jdholtz commented on September 14, 2024

I can make a 429 error not crash the program, just skip execution (or retry it). Then that issue shouldn’t matter much.

from auto-southwest-check-in.

himnim avatar himnim commented on September 14, 2024

I see, so once you hit the 429 error, the only resolution is to restart the container? Seems that way, as I had 2 accounts and 1 encountered the error but the other didn't, and when testing with a new booking on the account with the error, it did not pull the flight/attempt to login after another hour.

from auto-southwest-check-in.

jdholtz avatar jdholtz commented on September 14, 2024

Yes. In Python, it appears that an exception raised by a child process also stops the main process — at least with the way it’s set up in the script.

from auto-southwest-check-in.

himnim avatar himnim commented on September 14, 2024

Just updating here as both my accounts encountered 429 error over the weekend.

from auto-southwest-check-in.

jdholtz avatar jdholtz commented on September 14, 2024

Thanks for following up. I will implement better 429 handling soon. For now, you can probably just use longer intervals as I don’t really see an advantage of having the interval so short.

from auto-southwest-check-in.

jdholtz avatar jdholtz commented on September 14, 2024

Hey @himnim, I added 429 error handling in the latest commit on the develop branch. Now, the script will just skip flight retrieval once for that account when a 429 error occurs instead of crashing the entire script.

from auto-southwest-check-in.

himnim avatar himnim commented on September 14, 2024

Thanks, this is actually quite topical because I was editing my config today to add flights via confirmation number for my sister-in-law and now the 2 accounts listed in config are getting 429 error immediately upon restarting the Docker container. Would that be a possible system block on SW's end? I may have to revert to confirmation number config instead of account config if so. I'm able to login to my account fine on an interactive browser

from auto-southwest-check-in.

jdholtz avatar jdholtz commented on September 14, 2024

Are you only encountering 429’s in account mode? It probably isn’t something Southwest is blocking because you are able to login on their website just fine.

from auto-southwest-check-in.

himnim avatar himnim commented on September 14, 2024

Yes, my accounts are getting 429 after restarting the container (so they're effectively not working), my flights via confirmation number pulled up fine.

image

from auto-southwest-check-in.

jdholtz avatar jdholtz commented on September 14, 2024

Are you using the latest version (4.1)?

from auto-southwest-check-in.

himnim avatar himnim commented on September 14, 2024

No, didn't realize you released a new version yesterday - will look at updating today

from auto-southwest-check-in.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.