ExceptionFactory.java -> buildHttpException(...) Line 28 results in an Exception because decodedBody contains (at least for some Exceptions) plain text and not a JSON string.
Example response:
Response{status=400, body='YW1vdW50c19wZXJfcGF5bWVudF90eXBlOiBJbnZhbGlkIHR5cGUuIEV4cGVjdGVkOiBhcnJheSwgZ2l2ZW46IG9iamVjdAo=', headers={X-Request-Id=[0123456789]}}
Hello,
ExceptionFactory.java -> buildHttpException(...) Line 28 results in an Exception because decodedBody contains (at least for some Exceptions) plain text and not a JSON string.
Example response: Response{status=400, body='YW1vdW50c19wZXJfcGF5bWVudF90eXBlOiBJbnZhbGlkIHR5cGUuIEV4cGVjdGVkOiBhcnJheSwgZ2l2ZW46IG9iamVjdAo=', headers={X-Request-Id=[0123456789]}}
decodeBody = "amounts_per_payment_type: Invalid type. Expected: array, given: object"
Btw. After Exceptions like this, my JVM crashes as well as mentioned in the issue "#2 Random segmentation faults bug".