This page covers common errors and fixes for the OSS PHP SDK.
Download fails with cURL error: Failed writing body (0 != 13769)
This error occurs because the data cannot be saved to the local file.
Check the following:
Write permissions — Make sure the process running your PHP script has write permission on the target file.
File path and directory structure — Verify the full path to the target file is correct. If the path includes multiple directories, all intermediate directories must exist before the download starts.