8000 Unexpected empty body · Issue #116 · OpenFeign/feign-form · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Dec 31, 2024. It is now read-only.
This repository was archived by the owner on Dec 31, 2024. It is now read-only.

Unexpected empty body #116

@lowcasz

Description

@lowcasz

Encoder should map final fields or even log reason of skip fields.

I'm using in project immutable objects supported by lombok @value.

I spent a lot lot of time to debug why I have empty body using "consumes = APPLICATION_FORM_URLENCODED_VALUE".
All encoders normally encode immutable objects to json, but this one does not.
IMO final fields should be serialized. Modifier transient can be used to skip it.
It would be nice to have logging of skipped fields and reason of it when FULL logging level is used.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0