FAQ

Updated at:
Copy as MD

"Can not find endpoint to access" error when calling the SDK

This error occurs because the Java SDK cannot resolve the endpoint for the BssOpenApi service. The SDK requires a manually registered endpoint for this service before making any API call.

To fix the error, call DefaultProfile.AddEndpoint:

DefaultProfile.AddEndpoint("cn-hangzhou", "cn-hangzhou", "BssOpenApi", "business.aliyuncs.com");

The following table describes the required parameters:

ParameterValue
Region IDcn-hangzhou
Regioncn-hangzhou
Service nameBssOpenApi
Domain namebusiness.aliyuncs.com