error code 499 while uploading file through nodejs

Prabhat_kumar
Prabhat_kumar Member Posts: 2
edited August 12 in Developer APIs

I am facing error: { message: 'Request Timeout', http_code: 499, name: 'TimeoutError' } meanwhile my internet connection is stable and file size is 55kb. I have tried with other file size still gives same error. Also i tried increasing my request timeout by 10000ms on postman. Tried Thunderbolt also for testing and gets same error. Key point is that same code is working fine on my friends system with same configuration but not working on my system.

Tagged:

Answers

  • atdatu
    atdatu Member, Cloudinary Staff Posts: 18

    Hi Prabhat,

    Thank you for reaching out! For a simple programmatic upload using our nodejs sdk, sample code is the following:

    cloudinary.v2.uploader
    .upload("hat.jpg", { 
      use_filename: true})
    .then(result=>console.log(result));
    

    This sample code is documented on our Upload Guide pages. It also crucial to test whether the app can reach the internet, for example download or load an image to a page that was already uploaded/existing on your account. Using the image method cloudinary.image("sample.jpg") should generate an HTML tag like so: <img src='https://res.cloudinary.com/demo/image/upload/sample.jpg' />

  • aroravaruncode
    aroravaruncode Member Posts: 1

    Did u solved the problem??? Becoz I m also facing the same issue

  • Tamara
    Tamara Member, Cloudinary Staff Posts: 123
    edited October 21

    Hi @aroravaruncode,

    Most times folks run into this error it has to do with network issues that are
    solved by changing some network configurations or swapping to a different
    network.

    Can you please open a support ticket so we can help you investigate?

    https://support.cloudinary.com/hc/en-us/requests/new

    -Tamara