Skip to content

refactor: make webclient response parsing more fault-tolerant #25

@tomwwinter

Description

@tomwwinter

Currently we try to parse the response from a webClient call directly within the "bodyToMono" block, wich lead to an decoding error when our DTO is not matching the response result. Also we lost here the actually response from the remote service.

Improvement:

Parse all responses as String and try to map them after that with jacksonObjectMapper. If parsing fails now, we are still able to log the actually response.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Todo (ready for work)

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions