I am trying to curl the URL to get the submitted data from the kobo to our server, I am facing the server issue; 502 Bad Gateaway

Hi @sanjayadh, based on the time it took for your request, your project may have a large number of submissions in which case @Sjlver is correct, sometimes this can fail based on server load and/or some issues with database efficiency that we’re currently addressing. Likely setting a limit in your URL will solve the issue (but might not as seen here: Cannot export and download my data):

"https://KF_URL/api/v2/assets/ASSET_UID/data/?limit=1000&format=json"
1 Like