What do I do if the -1 status code is returned when I upload an object?
The -1 status code that is returned when you upload an object indicates that the network cannot be accessed.
If the network connection is unstable during object upload, upload failure or interruption incurs and the -1 status code is returned.
-
When you use the Internet to upload an object, the possible causes include poor network quality and the firewalls of the network. We recommend that you check the network quality and firewalls.
-
When you use an internal network to upload an object, the possible causes include a high Elastic Compute Service (ECS) workload and security group settings. We recommend that you troubleshoot the issue based on the preceding possible causes.
-
When you access OSS over a long distance, for example, access from Chinese mainland to regions outside Chinese mainland. In this case, you can use the OSS acceleration endpoint to upload an object to mitigate the impact of the unstable network connection. For more information, see Access OSS using transfer acceleration.