Skip to main content

Getting 502 (Bad Gateway) when uploading image to Cloudinary via API call

Comments

3 comments

  • Raya Straus

    Hi Azeez, 

    Can you please open a ticket at support@cloudinary.com with a live example? 

     

    0
  • Serhii Diukarev

    did you find a solution?

    0
  • Aleksandar Kostadinov

    Hi Serhii,

    Just adding a response here since I saw you had opened a ticket directly with us that we've looked into, but in case anyone else comes across this thread.

    This was because in the upload parameters the 'callback' was defined instead of a 'notification_url'. The callback parameter redirects to the specified URL after upload and the 502 response was from that remote address. If you're looking for a field to set the webhook where the API response will be sent to, it should be set in the 'notification_url' parameter. For more details on that and in general about the upload method parameters please refer to the following section in the documentation -
    https://cloudinary.com/documentation/image_upload_api_reference#upload_method

    0

Post is closed for comments.