Validation errors in the new configuration

POST /rest/system/config

I’m doing an automated script program settings.

After modifying the configuration when you try to make a post request to return an error but it is not clear where exactly the error.

returns only the text

json: cannot unmarshal string into Go value of type int
status 500

with such a reply is not clear where in the configuration error

Indeed. That’s a weakness in the Go JSON parser. The problem in this case is that you have a string (something in quotes) where it expects a number.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.