Cloudinary image upload error
I am making the project where i am using cloudinary for image upload. But there is some problem with it, whenever i try to upload the image through my project, it shows me the error:-
Error during image upload to Cloudinary: {
error: { message: 'Request Timeout', http_code: 499, name: 'TimeoutError' }
}
Earlier, this issue used to get resolved itself, but now it's been few days, since it's showing the same error. I have my internet connection stable, so i think it's not related to that. i am providing the code below for the reference, please someone help me with this.
Comments
-
Hi @r1i2s3h4i5 ,
The error message "TimeoutError" with error code 499 isn't a Cloudinary-specific error. This error typically occurs when the client closes the request while the server is still processing it. Essentially, it indicates that the
client has terminated the connection prematurely, which is categorized as a client-based error.To address this issue, I suggest increasing the timeout duration for the request.
Additionally, please ensure that your network connection is stable and has sufficient bandwidth. Unstable connections can often lead to timeouts and other connectivity issues.
Another factor to consider is the file size you are attempting to upload. It might be too large for the limits set on your Cloudinary account.
Could you please provide more details about the file size you're trying to upload? This information will help us determine if the file size is within your account's upload limits.
Best Regards,
Wissam
0 -
Hi @Wissam
as you can see in the code provided, that i have already increased the timeout duration, still it's showing the same error. My network connection is stable, and the file size i am trying to upload is less that 50kb. Also, this error used to occur earlier, but it used to get resolved, as soon as i login to cloudinary. But now, this error has become permanent, and not resolving at all.
Please someone provide me a legit solution to this.
0 -
Hi @r1i2s3h4i5,
What is the source of the file you are trying to upload? Is it from a URI stream, a remote location, or a local file?
To isolate the issue, I suggest trying to upload a local file first by hard coding the file path in your code. If this uploads successfully, something must be wrong with the original source file which causes the timeout.
Please let us know how it goes.
Best,
John
0