I'm wondering how to debug this kind of error.
POST http://www.myurl.com/toto 502 (Bad Gateway).
This happen on some sort of environment (not mine), following an AJAX post request like this:
$.ajax({
url: '/toto',
type: 'POST',
data: formData,
cache: false,
async: true,
processData: false,
contentType: false,
success: function (result) {
console.log(result);
}
});