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:
| Parameter | Value |
|---|---|
| Region ID | cn-hangzhou |
| Region | cn-hangzhou |
| Service name | BssOpenApi |
| Domain name | business.aliyuncs.com |
Is this page helpful?