We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
v5 would return the actual error returned by the website.
For example, if you try to scrap https://www.congress.gov/bill/117th-congress/house-bill/2617/text then you will get a 403-Forbidden error.
v6 now catches all 4xx and 5xx errors and returns a generic "Server has returned a 400/500 error code" which is not helpful/useful.
Why hide the actual error?
The text was updated successfully, but these errors were encountered:
Hello,
Fixed in open-graph-scraper@6.2.1
open-graph-scraper@6.2.1
This will now return:
result: { success: false, requestUrl: 'https://www.congress.gov/bill/117th-congress/house-bill/2617/text', error: '403 Forbidden', errorDetails: Error: 403 Forbidden at requestAndResultsFormatter (/openGraphScraper/lib/request.ts:36:17) at processTicksAndRejections (node:internal/process/task_queues:95:5) at setOptionsAndReturnOpenGraphResults (/openGraphScraper/lib/openGraphScraper.ts:44:32) at run (/openGraphScraper/index.ts:26:15) }
Sorry, something went wrong.
Thanks!!
No branches or pull requests
v5 would return the actual error returned by the website.
For example, if you try to scrap https://www.congress.gov/bill/117th-congress/house-bill/2617/text then you will get a 403-Forbidden error.
v6 now catches all 4xx and 5xx errors and returns a generic "Server has returned a 400/500 error code" which is not helpful/useful.
Why hide the actual error?
The text was updated successfully, but these errors were encountered: