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

Unsafe legacy renegotiation disabled #3423

Open
andreiregpin opened this issue Oct 7, 2023 · 0 comments
Open

Unsafe legacy renegotiation disabled #3423

andreiregpin opened this issue Oct 7, 2023 · 0 comments

Comments

@andreiregpin
Copy link

andreiregpin commented Oct 7, 2023

Trying to scrape legacy apis with node 18 causes the following error:

error TypeError: fetch failed at Object.fetch (node:internal/deps/undici/undici:11576:11) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) { cause: [Error: C8370000:error:0A000152:SSL routines:final_renegotiate:unsafe legacy renegotiation disabled:c:\ws\deps\openssl\openssl\ssl\statem\extensions.c:922: ] { library: 'SSL routines', reason: 'unsafe legacy renegotiation disabled', code: 'ERR_SSL_UNSAFE_LEGACY_RENEGOTIATION_DISABLED' } }

There are some threads on stackoverflow that provide workarounds for fetching data with fetch and axios, but I'm using CheerioWebBaseLoader from Langchain integration and so those don't apply to it.

Here is how to reproduce it.

Install node 18+

try scraping this website: https://scsanctions.un.org/resources/xml/en/consolidated.xml

Any help will be appreciated.

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

No branches or pull requests

1 participant