Skip to content

Conversation

@techpeace
Copy link
Contributor

Adds support for HTTP 429 Too Many Requests status.

@techpeace
Copy link
Contributor Author

Howdy! Thanks for the library 🙌

I ran into the issue raised in #38 myself recently:

Failed to get image for https://www.bleepingcomputer.com/news/security/healthcare-services-group-data-breach-impacts-624-000-people: {
  error: true,
  result: {
    success: false,
    requestUrl: 'https://www.bleepingcomputer.com/news/security/healthcare-services-group-data-breach-impacts-624-000-people',
    error: 'Server has returned a 400/500 error code',
    errorDetails: Error: Server has returned a 400/500 error code

I found I had to add some logging to request.ts in order to track down the actual issue (the 429, in my case).

Would it make sense to surface any part of the response in the error object, in addition to errorDetails? I realize status and statusText could be duplicative if it's caught by the case statement.

Copy link
Owner

@jshemas jshemas left a comment

Choose a reason for hiding this comment

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

Thank for the pull request!

@jshemas jshemas merged commit c4cd92b into jshemas:master Nov 26, 2025
1 of 4 checks passed
@jshemas
Copy link
Owner

jshemas commented Nov 26, 2025

Changes are live in open-graph-scraper@6.11.0

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.

2 participants