Skip to content

fix: Correct the URL scheme and port used on the psc_endpoint branch in Sandboxes.send_command and Sandboxes.generate_browser_ws_headers. The branch added in cl/981254234 built https://{psc_endpoint} and defaulted to port 443, but PSC endpoints for VPC-SC sandboxes route directly to the sandbox router pod, which serves plain HTTP on the caller-supplied port (default 8080) and does not terminate TLS on 443. As a result every VPC-SC data-plane call through the SDK hung on ConnectTimeout at HTTPSConnectionPool(host='<psc-ip>', port=443). The endpoint is now built as http://{psc_endpoint}:{port} for send_command and ws://{psc_endpoint}:{port} for generate_browser_ws_headers, so the URL matches what the router serves. Non-VPC-SC callers (load_balancer_hostname / load_balancer_ip branches) are unaffected. - #7236

Open
copybara-service[bot] wants to merge 1 commit into
mainfrom
copybara_983303249

Conversation

@copybara-service

Copy link
Copy Markdown
Contributor

fix: Correct the URL scheme and port used on the psc_endpoint branch in Sandboxes.send_command and Sandboxes.generate_browser_ws_headers. The branch added in cl/981254234 built https://{psc_endpoint} and defaulted to port 443, but PSC endpoints for VPC-SC sandboxes route directly to the sandbox router pod, which serves plain HTTP on the caller-supplied port (default 8080) and does not terminate TLS on 443. As a result every VPC-SC data-plane call through the SDK hung on ConnectTimeout at HTTPSConnectionPool(host='<psc-ip>', port=443). The endpoint is now built as http://{psc_endpoint}:{port} for send_command and ws://{psc_endpoint}:{port} for generate_browser_ws_headers, so the URL matches what the router serves. Non-VPC-SC callers (load_balancer_hostname / load_balancer_ip branches) are unaffected.

…h in `Sandboxes.send_command` and `Sandboxes.generate_browser_ws_headers`. The branch added in cl/981254234 built `https://{psc_endpoint}` and defaulted to port 443, but PSC endpoints for VPC-SC sandboxes route directly to the sandbox router pod, which serves plain HTTP on the caller-supplied port (default 8080) and does not terminate TLS on 443. As a result every VPC-SC data-plane call through the SDK hung on `ConnectTimeout` at `HTTPSConnectionPool(host='<psc-ip>', port=443)`. The endpoint is now built as `http://{psc_endpoint}:{port}` for `send_command` and `ws://{psc_endpoint}:{port}` for `generate_browser_ws_headers`, so the URL matches what the router serves. Non-VPC-SC callers (`load_balancer_hostname` / `load_balancer_ip` branches) are unaffected.

PiperOrigin-RevId: 983303249
@product-auto-label product-auto-label Bot added the size: s Pull request size is small. label Oct 20, 2026
@copybara-service
copybara-service Bot requested a review from a team as a code owner October 20, 2026 23:45
@product-auto-label product-auto-label Bot added the api: vertex-ai Issues related to the googleapis/python-aiplatform API. label Oct 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: vertex-ai Issues related to the googleapis/python-aiplatform API. google-contributor size: s Pull request size is small.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant