An endpoint is the service entry of an Alibaba Cloud service. The endpoints of a service
vary by regions. For example, the endpoint of an ECS instance in the China (Hangzhou)
ecs-cn-hangzhou.aliyuncs.com, but the endpoint is
ecs.ap-northeast-1.aliyuncs.com if the ECS instance is located in the Japan (Tokyo) region. Alibaba Cloud SDK has
a built-in endpoint addressing module. After a request is sent, Alibaba Cloud SDK
will find the endpoint to use according to the region ID and product ID that are specified
when creating a client.
SDK.EndpointResolvingError, see the following solutions to troubleshoot.
|Error code||Error message||Resolution|
|SDK.InvalidRegionId||Can not find endpoint to access.||The current SDK version is too low. Please upgrade the SDK core library
|SDK.EndpointResolvingError||No such region <region-id>. Please check your region ID.||Please check your region ID.
You can call the DescribeRegions API to find the region ID.
|SDK.EndpointResolvingError||No endpoint for product <product-id>.||Resolution:
|SDK.EndpointResolvingError||No endpoint in the region <region-id> for product <product-id>.||Cannot find the endpoint of the product in the specified region. Resolution:
Configure an endpoint directly
DescribeInstancesRequest request = new DescribeInstancesRequest(); // Configure an endpoint for this request configuration.setEndpoint("ecs-cn-hangzhou.aliyuncs.com"); DescribeInstancesResponse response = client.getAcsResponse(request);