Skip to content

Connection errored out when accessing presignedURL #675

@aws-sssjwang

Description

@aws-sssjwang

Hey I have implemented your product on cloud. It can work well when access other public address. but when I make the request for presignedURL, which may have 4500 token, it would access the URL and then shows connection error, I checked the logs, it stuck at 302 return code. I tried to make the url shorter but still face same problem. called with bedrock api. Following is the relative logs.
`

WARNING [browser] :warning: Headless mode is not recommended. Many sites will detect and block all headless browsers. WARNING [browser] :warning: Headless mode is not recommended. Many sites will detect and block all headless browsers. INFO [src.controller.custom_controller] :rocket: SIMPLIFIED SageMaker Navigation - Debug Version INFO [src.controller.custom_controller] :clipboard: Hardcoded parameters: DomainId=d-9cpchwz1nnno, UserProfile=adam-test-user-1752279282450, Space=adam-space-1752279293076 INFO [src.controller.custom_controller] :arrows_counterclockwise: AWS session attempt 1/3... INFO [botocore.credentials] Found credentials from IAM Role: eksctl-browser-use-deployment-clus-NodeInstanceRole-RM89zn6fxQxp INFO [src.controller.custom_controller] :white_check_mark: AWS session and SageMaker client created successfully INFO [src.controller.custom_controller] :arrows_counterclockwise: Presigned URL generation attempt 1/3... INFO [src.controller.custom_controller] :white_check_mark: Generated presigned URL successfully (length: 4519 chars) INFO [src.controller.custom_controller] :link: URL preview: https://nhk8sx2goysqdri.studio.us-east-1.sagemaker.aws/auth?token=eyJhbGciOiJIUzI1NiJ9.eyJzcGFjZU5hb... INFO [src.controller.custom_controller] :link: Creating short URL to avoid token consumption... INFO [src.controller.custom_controller] :straight_ruler: Original presigned URL length: 4519 chars 127.0.0.1 - - [06/Aug/2025 16:30:44] "POST /api/shorten HTTP/1.1" 200 - INFO [src.controller.custom_controller] :straight_ruler: Short URL length: 32 chars INFO [src.controller.custom_controller] :link: Short URL: http://127.0.0.1:8799/u/l4vq98T5 INFO [src.controller.custom_controller] :white_check_mark: Short URL creation successful - reduced from 4519 to 32 chars INFO [src.controller.custom_controller] :globe_with_meridians: Executing enhanced navigation to SageMaker Studio... INFO [src.controller.custom_controller] :arrows_counterclockwise: Starting navigation with short URL (5 minutes timeout)... 127.0.0.1 - - [06/Aug/2025 16:30:44] "GET /u/l4vq98T5 HTTP/1.1" 302 - INFO [src.controller.custom_controller] :white_check_mark: Initial navigation completed successfully INFO [src.controller.custom_controller] :hourglass_flowing_sand: Waiting for network to be completely idle... INFO [src.controller.custom_controller] :white_check_mark: Network idle state achieved INFO [src.controller.custom_controller] :mag: Verifying SageMaker Studio page content..

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions