502 Bad Gateway error when attempting to edit a form submission