Skip to content

Bug in the JAVA swagger-template debug mode #4794

@pascal-m19

Description

@pascal-m19

The swagger generated JAVA client ApiClient.setDebugging() function is always throwing an exception because it tries to insert an interceptor into a list of interceptor of the OkHttpClient that is immutable once built.

A workaround is to convert the OkHttpClient into a builder before updating it, as proposed in this pull request #4793

Metadata

Metadata

Assignees

No one assigned

    Labels

    closing soonThis issue will be closed soon

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions