Problem description
An upload callback request fails because Object Storage Service (OSS) receives a response from the callback server with an HTTP status code other than 200 OK.
Causes
The callback server is not running.
The
callbackUrlparameter is missing from the upload request.The callback server is running and
callbackUrlis configured correctly, but the network between OSS and the callback server is disconnected.
Examples
None.
Solutions
Work through the following checks in order. Stop at the first one that matches your situation.
Check 1: Verify that the callback server is running
Send a POST request directly to your callback server:
curl -X POST https://<your-callback-server-url>Or use Postman to send a POST request to the callback server URL.
Expected result: The server returns HTTP/1.1 200 OK.
If the server does not respond or returns an error, check the code deployed on the callback server and restart the service if necessary.
Check 2: Verify that callbackUrl is included in the upload request
The upload request must include the callbackUrl parameter. If this parameter is missing, OSS cannot send the callback.
Include and configure callbackUrl in the request when uploading an object. For configuration details, see Upload callbacks.
Check 3: Check for network connectivity issues between OSS and the callback server
If the callback server is running and callbackUrl is configured correctly, check whether a firewall is enabled on your server. If the firewall is enabled for your server, you cannot use the external network to access OSS resources. Disable the firewall rule that blocks the OSS callback, or add an allowlist rule to permit traffic from OSS.
References
For causes and solutions for HTTP status code 203, see HTTP status code 203.
For the principles and usage of the upload callback feature, see Upload callbacks and Callback.
For common errors when configuring upload callbacks and their solutions, see Upload callbacks.
For how to get a signature from the server in various programming languages based on POST policy, configure upload callbacks, and use form upload to upload data to OSS, see Overview.
For how to set up an OSS-based direct data transfer service for mobile apps with upload callbacks, see Set up upload callbacks for mobile apps.