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

Fix header url #314

Merged
merged 1 commit into from
Oct 31, 2024
Merged

Fix header url #314

merged 1 commit into from
Oct 31, 2024

Conversation

sephamorr
Copy link
Contributor

Fixes #313 per diff from issue thread

@jdholtz
Copy link
Owner

jdholtz commented Oct 31, 2024

Thanks for the fix! I changed the PR to merge to the develop branch and will make a release with this fix soon.

@jdholtz jdholtz merged commit 3c8bbf3 into jdholtz:develop Oct 31, 2024
19 checks passed
@@ -20,7 +20,7 @@
BASE_URL = "https://mobile.southwest.com"
LOGIN_URL = BASE_URL + "/api/security/v4/security/token"
TRIPS_URL = BASE_URL + "/api/mobile-misc/v1/mobile-misc/page/upcoming-trips"
HEADERS_URL = BASE_URL + "/api/chase/v2/chase/offers"
HEADERS_URL = BASE_URL + "/api/mobile-air-booking/v1/mobile-air-booking/feature/shopping-details"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did southwest change its endpoint on their end?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I’m not sure as I didn’t look much into it, but sometimes Southwest will change the requests that are sent when you load the homepage. That’s my best guess as to what happened here. The old URL isn’t being loaded with the homepage, but rather this URL now.

A better fix to this could potentially be to look for the headers in the request instead of checking for a specific URL.

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

Successfully merging this pull request may close these issues.

Timeout while refreshing headers. Skipping reservation retrieval
3 participants