Skip to content

Conversation

@jackfrost1411
Copy link
Contributor

@jackfrost1411 jackfrost1411 commented Jun 15, 2023

A must-include for SiteMap Loader to avoid the SSL verification error. Setting the 'verify' to False by sitemap_loader.requests_kwargs = {"verify": False} does not bypass the SSL verification in some websites.

There are websites (https:// researchadmin.asu.edu/ sitemap.xml) where setting "verify" to False as shown below would not work:
sitemap_loader.requests_kwargs = {"verify": False}

We need this merge to tell the Session to use a connector with a specific argument about SSL:
# For SiteMap SSL verification
if not self.request_kwargs['verify']:
connector = aiohttp.TCPConnector(ssl=False)
else:
connector = None

Fixes #5483

Before submitting

Who can review?

Tag maintainers/contributors who might be interested:

@hwchase17
@eyurtsev

A must-include for SiteMap Loader to avoid the SSL verification error. Setting the 'verify' to False by ``` sitemap_loader.requests_kwargs = {"verify": False}``` does not bypass the SSL verification in some websites.
@vercel
Copy link

vercel bot commented Jun 15, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
langchain ❌ Failed (Inspect) Jun 15, 2023 9:19pm

@vercel vercel bot temporarily deployed to Preview June 15, 2023 21:10 Inactive
minor spell mistake
@vercel vercel bot temporarily deployed to Preview June 15, 2023 21:17 Inactive
@vercel vercel bot temporarily deployed to Preview June 15, 2023 21:19 Inactive
Copy link
Contributor

@hwchase17 hwchase17 left a comment

Choose a reason for hiding this comment

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

thanks!

@hwchase17 hwchase17 added the lgtm label Jun 19, 2023
@vercel
Copy link

vercel bot commented Jun 19, 2023

@hwchase17 is attempting to deploy a commit to the LangChain Team on Vercel.

A member of the Team first needs to authorize it.

@hwchase17 hwchase17 merged commit b2b9ded into langchain-ai:master Jun 19, 2023
This was referenced Jun 25, 2023
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.

[SSL: CERTIFICATE_VERIFY_FAILED] while load from SitemapLoader

2 participants