FgForrest / evitaDB

evitaDB is a specialized database with an easy-to-use API for e-commerce systems. It is a low-latency NoSQL in-memory engine that handles all the complex tasks that e-commerce systems have to deal with on a daily basis. evitaDB is expected to act as a fast secondary lookup/search index used by front stores.
https://evitadb.io
Other
62 stars 7 forks source link

Invalid classification of RestInternalError #666

Closed novoj closed 2 months ago

novoj commented 2 months ago

The invalid input JSON is probably classified as internal error, but should be invalid input:

Internal Evita rest API error occurred in 62663481f4e06623dca9964d207b9599:af7e03290249dcf135c6dd7ad7cd6bc9:84: Could not parse request body: 
io.evitadb.externalApi.rest.exception.RestInternalError: Could not parse request body: 
    at io.evitadb.externalApi.rest.io.JsonRestHandler.lambda$parseRequestBody$1(JsonRestHandler.java:70)
    at java.base/java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:646)
    at java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:510)
    at java.base/java.util.concurrent.CompletableFuture.complete(CompletableFuture.java:2147)
Caused by: com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot construct instance of `io.evitadb.externalApi.rest.api.catalog.dataApi.dto.QueryEntityRequestDto$QueryEntityRequestDtoBuilder` (although at least one Creator exists): no String-argument constructor/factory method to deserialize from String value ('{}')
 at [Source: (String)""\n{}""; line: 1, column: 1]
    at com.fasterxml.jackson.databind.exc.MismatchedInputException.from(MismatchedInputException.java:63)