7 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 7 matches · showing 5 view file →
6import httpx
7
8from langchain_core._security._exceptions import SSRFBlockedError
9from langchain_core._security._policy import (
10 DEFAULT_SSRF_POLICY,
· · ·
80 type=socket.SOCK_STREAM,
81 )
82 except socket.gaierror as exc:
83 msg = "DNS resolution failed"
84 raise SSRFBlockedError(msg) from exc
· · ·
84 raise SSRFBlockedError(msg) from exc
85
86 if not addrinfo:
· · ·
87 msg = "DNS resolution returned no results"
88 raise SSRFBlockedError(msg)
89
90 # 5. Validate ALL resolved IPs - any blocked means reject.
· · ·
162 type=socket.SOCK_STREAM,
163 )
164 except socket.gaierror as exc:
165 msg = "DNS resolution failed"
166 raise SSRFBlockedError(msg) from exc
+ 2 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.