The following are some common errors you may experience when using Alibaba Cloud Java SDK. Potential causes and resolutions are shown for these commonly experienced errors.
The AccessKey ID is invalid.
Make sure that the AccessKey ID is correct.
The SDK cannot automatically obtain the endpoint of the product according to the
Check if the
RegionId is correct, and get the product endpoint from ECS endpoints in different regions.
The endpoint cannot be connected when you initiate a request.
Make sure that your network is available.
DefaultProfile parameter provided when you initialize the
DefaultAcsClient is invalid.
Make sure that the
DefaultProfile parameter has been correctly initialized and corresponding parameters have been configured.
The SessionToken is invalid or expires.
Make sure that the STS token is valid. The default, the effective time is one hour.
The AccessKey secret does not match the AccessKey ID.
Make sure that the AccessKey secret is correct.
Submit your problem to Alibaba Cloud through DingTalk group: 11771185, GitHub issue. The SDK R&D team will respond to you as soon as possible.