8 matches across 1 files for error lang:Python path:libs/core/langchain_core/_security/_transport.py lang:Python lang:Python
snippet_mode: auto · sorted by relevance
libs/core/langchain_core/_security/_transport.py PYTHON 8 matches · showing 5 view file →
6import httpx
7
8from langchain_core._security._exceptions import SSRFBlockedError
9from langchain_core._security._policy import (
10 SSRFPolicy,
· · ·
65 try:
66 validate_url_sync(str(request.url), self._policy)
67 except SSRFBlockedError:
68 raise
69
· · ·
82 type=socket.SOCK_STREAM,
83 )
84 except socket.gaierror as exc:
85 raise SSRFBlockedError("DNS resolution failed") from exc
86
· · ·
85 raise SSRFBlockedError("DNS resolution failed") from exc
86
87 if not addrinfo:
· · ·
88 raise SSRFBlockedError("DNS resolution returned no results")
89
90 # 5. Validate ALL resolved IPs - any blocked means reject.
+ 3 more matches in this file
Search syntax
auth loginboth terms (AND is implicit)
auth OR logineither term
NOT path:vendorexclude matches
"exact phrase"quoted exact match
/func\s+Test/regex
handler~1fuzzy (Levenshtein 1)
file:*_test.gofilename glob
path:pkg/auth/**full path glob
lang:golanguage filter

Search any public repo from your terminal

This page calls POST /api/v1/code_search. Same tool, available over MCP for Claude/Cursor/Copilot.