When submitting a configuration form to Jenkins, I get a 500 error saying This page expects a form submission but had only

Article ID:218762177
1 minute readKnowledge base

Issue

When submitting a configuration form to Jenkins, I get a 500 error saying "This page expects a form submission but had only {}"

Environment

Any version of Jenkins

Resolution

Generally if you get this error, it means that you need to look at the Javascript console (View -> Developer -> Javascript console) for more information on how to diagnose the problem. Often, you will see a 500 error encountered while executing some Javascript like this one:

Configure_System_Jenkins_.png

You can then click on the URL in the error message to get the root cause:

Apache_Tomcat_6_0_32_-_Error_report.png

You can often Google the error message and find a Jenkins issue which has been logged by others in the community. Often a fix will be available in a pending plugin upgrade. Otherwise, you can include the error message in your support ticket, leading to a faster resolution of your problem.