Skip to content

update bwb api url to avoid 301#12427

Merged
cdrini merged 1 commit into
masterfrom
fix/bwb-301
Apr 21, 2026
Merged

update bwb api url to avoid 301#12427
cdrini merged 1 commit into
masterfrom
fix/bwb-301

Conversation

@RayBB

@RayBB RayBB commented Apr 21, 2026

Copy link
Copy Markdown
Collaborator

Closes #
BWB is redirecting
https://products.betterworldbooks.com/service.aspx?IncludeAmazon=True&ItemId=9780765319852
To
https://products.bwbcontent.com/service.aspx?IncludeAmazon=True&ItemId=

The new async client doesn't follow redirects by default.

We could update it to follow redirects but probably better to just set the updated url for now to avoid the extra hop.

Technical

Testing

Screenshot

Stakeholders

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Updates the Better World Books product metadata endpoint URL to avoid a 301 redirect that the current async HTTPX client does not follow by default, restoring vendor metadata fetching without changing client redirect behavior.

Changes:

  • Switched BETTERWORLDBOOKS_API_URL from products.betterworldbooks.com to products.bwbcontent.com to avoid redirects.

@cdrini cdrini left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Great catch! Patched on prod and works like a charm now! And we dropped an unnecessary 301 🥳

@cdrini cdrini merged commit 11930c0 into master Apr 21, 2026
11 checks passed
@cdrini cdrini deleted the fix/bwb-301 branch April 21, 2026 23:25
@cdrini cdrini added the Patch Deployed This PR has been deployed to production independently, outside of the regular deploy cycle. label Apr 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Patch Deployed This PR has been deployed to production independently, outside of the regular deploy cycle.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants