Solutions for Handling API Errors

Solutions for Handling API Errors

Related Articles:


Summary of API error codes: 2101019, 2101010, 2101006, 2101017, 2101025, 2101022, 2101023, 2101009, 3501004

1. Basic Troubleshooting

① Check that the URL is correct
Users of the International Data Centre should use the new domain https://globalapi.solarmanpv.com to replace the old domain https://api.solarmanpv.com
② The CAPTCHA interface is disabled by default

2. Common Error Code Reference Table

(If an error is displayed whilst using the API, please first check the error code table and troubleshoot each item in turn;)


3. If you are unable to resolve the issue yourself after reviewing the above documentation, please submit an after-sales support ticket.

If the error persists after carrying out the above troubleshooting steps, please provide the following information when submitting your ticket so that the platform’s after-sales team can investigate:
CURL request (must include the complete Request Header and Body);
API response body;
Relevant screenshots (error pages, parameter input screens, etc.).
Support ticket submission link:

Example of a CURL request:

curl --request POST \

--url "..." \

--header "Content-Type: application/json" \

--data '{

"appSecret": "4",

"email": "",

"password": ""

}'


Example API response:
{
"access_token": null,
"token_type": null,

"refresh_token": null,

"expires_in": null,

"scope": null,

"uid": null,

"code": 2101025,

"msg": "auth failed",

"success": false,

"requestId": 5

}