Problem description
The callbackUrl field contains URLs whose IP addresses are private IP addresses.
Causes
You initiated a request and obtained a JSON string decoded from the Base64-encoded value of the Callback parameter that specifies upload callback. If the callbackUrl field contains URLs whose IP addresses are private IP addresses, the error is returned.
The callbackUrl field contains the destination URLs of requests after objects are uploaded to Object Storage Service (OSS). The IP addresses of the URLs must be public IP addresses that can be accessed. Otherwise, the error is reported.
Examples
The following code shows a sample response that is decoded from the value of the Callback parameter:
{
"callbackUrl":"127.0.0.1:8088/test.php",
"callbackBody":"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&imageInfo.height=${imageInfo.height}&imageInfo.width=${imageInfo.width}&imageInfo.format=${imageInfo.format}&my_var=${x:my_var}"
}
In the preceding response, the callbackUrl field contains URLs whose IP addresses are private IP addresses, instead of public IP addresses that can be accessed. As a result, the error is returned.
Solutions
Make sure that the IP addresses of the URLs in the callbackUrl field are public IP addresses that can be accessed as expected.
References
For information about the principles of the upload callback feature and how to use the feature, see Upload callback and Callback.
For information about the common errors that you may encounter when you configure upload callback and the causes of the errors, see Upload callback errors and troubleshooting.
For information about how to obtain signature information from the server in various programming languages based on POST policies, configure upload callback, and then directly upload data to OSS by using form upload, see Overview.
For information about how to set up an OSS-based direct data transfer service for mobile apps and configure upload callback, see Set up upload callback for mobile apps.