-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Labels
needs-triageThis issue or PR still needs to be triaged.This issue or PR still needs to be triaged.
Description
Describe the bug
Aws::SDKOptions sdkOptions;
Aws::InitAPI(sdkOptions);
Aws::Client::ClientConfiguration cfg;
cfg.region = "us-east-1";
auto client = Aws::MakeShared<BedrockRuntimeClient>("nova", cfg);
This code produces tons of errors like:
[ERROR] 2025-10-03 19:13:59.234 socket [28548] id=013E7B88 handle=000002F4: connect completion triggered with error -1073741252
[ERROR] 2025-10-03 19:13:59.234 channel-bootstrap [28548] id=013B3BD8: Connection failed with error_code 1049 : AWS_IO_SOCKET_NO_ROUTE_TO_HOST.
[ERROR] 2025-10-03 19:13:59.234 http-connection [28548] static: Client connection failed with error 1049 (AWS_IO_SOCKET_NO_ROUTE_TO_HOST).
[ERROR] 2025-10-03 19:13:59.234 CRTHttpClient [28548] Obtaining connection failed because aws-c-io: AWS_IO_SOCKET_NO_ROUTE_TO_HOST, socket connect failure, no route to host.
[ERROR] 2025-10-03 19:13:59.234 EC2MetadataClient [50580] Http request to retrieve credentials failed
[ERROR] 2025-10-03 19:13:59.349 socket [84560] id=013E7CB8 handle=00000300: connect completion triggered with error -1073741252
[ERROR] 2025-10-03 19:13:59.349 channel-bootstrap [84560] id=013B3BD8: Connection failed with error_code 1049 : AWS_IO_SOCKET_NO_ROUTE_TO_HOST.
[ERROR] 2025-10-03 19:13:59.349 http-connection [84560] static: Client connection failed with error 1049 (AWS_IO_SOCKET_NO_ROUTE_TO_HOST).
[ERROR] 2025-10-03 19:13:59.349 CRTHttpClient [84560] Obtaining connection failed because aws-c-io: AWS_IO_SOCKET_NO_ROUTE_TO_HOST, socket connect failure, no route to host.
[ERROR] 2025-10-03 19:13:59.350 EC2MetadataClient [50580] Http request to retrieve credentials failed
[ERROR] 2025-10-03 19:13:59.350 EC2MetadataClient [50580] Can not retrieve resource from http://169.254.169.254/latest/api/token
[ERROR] 2025-10-03 19:13:59.460 socket [80180] id=013E9158 handle=00000300: connect completion triggered with error -1073741252
[ERROR] 2025-10-03 19:13:59.460 channel-bootstrap [80180] id=013B3BD8: Connection failed with error_code 1049 : AWS_IO_SOCKET_NO_ROUTE_TO_HOST.
[ERROR] 2025-10-03 19:13:59.460 http-connection [80180] static: Client connection failed with error 1049 (AWS_IO_SOCKET_NO_ROUTE_TO_HOST).
[ERROR] 2025-10-03 19:13:59.460 CRTHttpClient [80180] Obtaining connection failed because aws-c-io: AWS_IO_SOCKET_NO_ROUTE_TO_HOST, socket connect failure, no route to host.
...
[ERROR] 2025-10-03 19:14:00.228 CRTHttpClient [86048] Obtaining connection failed because aws-c-io: AWS_IO_SOCKET_NO_ROUTE_TO_HOST, socket connect failure, no route to host.
[ERROR] 2025-10-03 19:14:00.228 EC2MetadataClient [50580] Http request to retrieve credentials failed
[ERROR] 2025-10-03 19:14:00.228 EC2MetadataClient [50580] Can not retrieve resource from http://169.254.169.254/latest/meta-data/placement/availability-zone
Regression Issue
- Select this option if this issue appears to be a regression.
Expected Behavior
No error messages, maybe info or warnings, at the most?
Is there a way to configure SDK not to attempt those calls?
Current Behavior
Tons of error messages in the log
Reproduction Steps
Aws::SDKOptions sdkOptions;
sdkOptions.loggingOptions.logLevel = Aws::Utils::Logging::LogLevel::Error;
Possible Solution
No response
Additional Information/Context
No response
AWS CPP SDK version used
1.11.661
Compiler and Version used
Visual Studio 2022
Operating System and version
Windows 11
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
needs-triageThis issue or PR still needs to be triaged.This issue or PR still needs to be triaged.