Error in sending request to server, errno 28
This is the error:
Uncaught Cloudinary\Error: Error in sending request to server - Operation timed out after 60000 milliseconds with 0 bytes received, errno - 28 in /Users/SVE15128CGB/Documents/SE/project/cloudinary_php/src/Uploader.php:495
Start of code is:
require_once "cloudinary_php/autoload.php";
\Cloudinary::config(array(
"cloud_name" => 'xxx',
"api_key" => 'xxx',
"api_secret" => 'xxx'
));
Here is where the error is getting generated:
\Cloudinary\Uploader::upload("input-video.mp4", array ("resource_type" => "video", "raw_convert" => "google_speech"));
-
Hi Kryselle,
Thanks for contacting us.
The most likely cause of this is the file size of the video attempting to be uploaded being close to or over 100MB and the upload does not complete within the default 60 second timeout period set in the SDK.
If this is the case, then we'd recommend uploading large files using the 'upload_large' method which splits the file in chunks and uploads them one by one. Example of how to use this method as well as more information, like configuring the individual chunk size, can be found here: https://cloudinary.com/documentation/upload_videos#chunked_video_upload.
Could you please try and upload the same file using the upload_large method instead of the 'upload' method? Let me know how it goes or if you have further questions.
Best regards,
Aleksandar
0 -
This is the error I'm getting in laravel Error in sending request to server - Failed to connect to api.cloudinary.com port 443: Connection refusedCloudder::upload($image_name, null);
list($width, $height) = getimagesize($image_name);
$image_url = Cloudder::show(Cloudder::getPublicId(), ["width" => $width, "height" => $height]);0 -
Hi Joshua,
We don't officially support this wrapper, however from going over the documentation, using upload preset that includes all your transformation might work
This is the call to upload image with presets using our php integration (you can read more here):
\Cloudinary\Uploader::upload("sample.jpg", array("resource_type" => "image", "upload_preset" => "my-preset"));So extrapolating from that, I would think the below might work
Cloudder::uploadVideo($filename, $publicId, array ("upload_preset" => "my-preset"));You can create a new upload preset here.Hope this helps, please let me know if you have any further questions.
-1
Post is closed for comments.
Comments
3 comments