13 matches across 1 files for error lang:Python path:libs/core/langchain_core/_security/_ssrf_protection.py
snippet_mode: auto · sorted by relevance
libs/core/langchain_core/_security/_ssrf_protection.py PYTHON 13 matches · showing 5 view file →
1"""SSRF Protection - thin wrapper raising ValueError for internal callers.
2
3Delegates all validation to `langchain_core._security._policy`.
· · ·
15)
16
17from langchain_core._security._exceptions import SSRFBlockedError
18from langchain_core._security._policy import (
19 SSRFPolicy,
· · ·
60
61 Raises:
62 ValueError: If URL is invalid or potentially dangerous.
63 """
64 url_str = str(url)
· · ·
79 try:
80 _validate_url_sync(url_str, policy)
81 except SSRFBlockedError as exc:
82 raise ValueError(str(exc)) from exc
83
· · ·
82 raise ValueError(str(exc)) from exc
83
84 # DNS resolution and IP validation
+ 8 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.