HTTP 400 Bad Request when passing decimal parameters via REST API
Quote from JVMReports on 7. May 2026, 15:28Hi everyone,
I am executing a report via the REST API and need to pass a few parameters. One of these parameters expects a decimal number.
When I make the API call and pass the value using a comma (10,5), the execution fails and returns an HTTP 400 Bad Request error. However, if I use a dot (10.5), it works on some servers but fails on others.
It seems like the API is rejecting the input because of the decimal separator, although it is really important that I can use both formats depending on the situation.
Does anyone know how the server determines whether it should expect a dot or a comma for these parameters? Is there a way to explicitly tell the API which format I am sending so I stop getting these 400 errors?
Thanks in advance!
Hi everyone,
I am executing a report via the REST API and need to pass a few parameters. One of these parameters expects a decimal number.
When I make the API call and pass the value using a comma (10,5), the execution fails and returns an HTTP 400 Bad Request error. However, if I use a dot (10.5), it works on some servers but fails on others.
It seems like the API is rejecting the input because of the decimal separator, although it is really important that I can use both formats depending on the situation.
Does anyone know how the server determines whether it should expect a dot or a comma for these parameters? Is there a way to explicitly tell the API which format I am sending so I stop getting these 400 errors?
Thanks in advance!
Quote from ThoZi on 7. May 2026, 22:14Good evening,
interestingly, I had just exactly the same problem at one of our customers. Indeed, that problem seems not depend on your server installation or the language this servers are running on. The more, it depends on the accessing clients language settings.
Furtunately you can come easy around this: first, the requests you send, are technical exchange information between systems, and therefore I would always format and send such information in a standardized english format. In your case with a dot as a decimal separator. Secondly, just pass always the parameter "userLocale=en" (or userLocale=en_US) with your request URL, so that you hava always a defined, language neutral communication between your system.
Hope that fixes your problem.
Greetings, Thomas
Good evening,
interestingly, I had just exactly the same problem at one of our customers. Indeed, that problem seems not depend on your server installation or the language this servers are running on. The more, it depends on the accessing clients language settings.
Furtunately you can come easy around this: first, the requests you send, are technical exchange information between systems, and therefore I would always format and send such information in a standardized english format. In your case with a dot as a decimal separator. Secondly, just pass always the parameter "userLocale=en" (or userLocale=en_US) with your request URL, so that you hava always a defined, language neutral communication between your system.
Hope that fixes your problem.
Greetings, Thomas
