Skip to content

Http client gets initialized with GsonJsonHandler instead of configured customJsonHandler #550

@gpor0

Description

@gpor0

Description
I am not sure if this is by design but jsonHandler gets initialized to GsonJsonHandler in Config class constructor. I would like to use custom Json Handler but I am unable to use it since httpClient is already initialized with Gson and does not get updated after setJsonHandler() function call.

Expected behavior
To add JsonHandler to Config constructor so the httpClient gets initialized properly.

Current behavior
What happened.

Screenshots or Logs
If applicable, add screenshots or logs to help explain your problem.

Environment:

  • OS: [OSX]
  • meilisearch-java version: [0.10.0]

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions