Closed FrogDevelopper closed 1 year ago
Well, by creating a minimum application to reproduce it I found the culprit, as I wasn't able to reproduce it. So, by excluding the "jackson-module-afterburner, I don't have the issue anymore
exclude(group = "com.fasterxml.jackson.module", module = "jackson-module-afterburner")
Expected Behavior
If a path return 404 - NOT_FOUND, the application start
Actual Behaviour
The API return 404 - NOT_FOUND with a body
and the application does not start and we got the error:
If I understand it correctly, as the body returned by the response is not taken into account, the response generated has a
null
body, so the serializer try to use the empty constructor ofJsonError
which is package accessible onlyso can not be accessed by the Jackson and thus throw the error
I was able to pass through this issue by replacing client
VaultConfigHttpClientV2
by a custom one, adding theerrorType
parameter to the client configurationSteps To Reproduce
I'll try to create a small project to reproduce it
Environment Information
Example Application
No response
Version
3.9.1