le9i0nx
(Le9i0nx)
1
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
calmh
(Jakob Borg)
2
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.
system
(system)
Closed
3
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.