You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 31, 2022. It is now read-only.
2021-03-03 10:12:11.489 ERROR 71694 --- [io-8080-exec-10] i.j.r.a.c.RestControllerExceptionHandler : Exception in REST controller
com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Unterminated object at line 3 column 4 path $.id
at com.google.gson.internal.Streams.parse(Streams.java:60) ~[gson-2.8.6.jar:na]
at com.google.gson.JsonParser.parseReader(JsonParser.java:85) ~[gson-2.8.6.jar:na]
at com.google.gson.JsonParser.parseReader(JsonParser.java:60) ~[gson-2.8.6.jar:na]
at com.google.gson.JsonParser.parseString(JsonParser.java:47) ~[gson-2.8.6.jar:na]
at com.google.gson.JsonParser.parse(JsonParser.java:98) ~[gson-2.8.6.jar:na]
at io.jmix.rest.api.service.EntitiesControllerManager.createEntity(EntitiesControllerManager.java:397) ~[jmix-rest-0.3.0.jar:na]
at io.jmix.rest.api.controller.EntitiesController.createEntity(EntitiesController.java:132) ~[jmix-rest-0.3.0.jar:na]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_172]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_172]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_172]
at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_172]
// ...
... 105 common frames omitted
Expected behavior:
HTTP 400 with an error message explaining that this is not a valid JSON structure.
The text was updated successfully, but these errors were encountered:
Given the following malformed JSON structure:
(missing the comma between id and name attributes) the result is HTTP 500:
Internal error message:
Expected behavior:
HTTP 400 with an error message explaining that this is not a valid JSON structure.
The text was updated successfully, but these errors were encountered: