REST API Endpoint for Media not Working

Dear all,

I am trying to access the API endpoint to media as seen in the image below (2nd bullet point):


However I get a 502 Bad Gateway error, what might the problem be?

Hi @Tumaini,

Could you kindly please let us know in detail the steps and actions you were trying to undertake so that we could have a look at our end and add to it.

Have a great day!

Hi @Kal_Lam,

My intention was to try create an R script which can download media files for a particular form. I want to browse the documentation so I go to where I then click on the link for media: image . I get the Bad Gateway error on clicking this link. Also on the command line (curl gets me the same error:image

Hi @Tumaini,

Would you mind having a look at the post that has been discussed previously (it should help you):

Have a great day!

is this PHP? it does not say… curl_init() seems to be a language specific function

Hi @Kal_Lam, I tend to feel that if curl did not work for me on the command line, would embedding a curl command in a script work?