Skip to content

Ability to catch interceptor IOException #3774

Closed

Description

I have a feature request / request for help.

The feature:
When you enqueue a call, an interceptor can throw an Exception when trying to create a request, I can't find a way to catch this exception. This only seems possible in synchronous calls.

The reason why I need it:
Right now it seems like the BridgeInterceptor is gathering cookies from my WebView and forwarding these when needed. However, some websites set special characters in their cookies, like ó.
When these cookies are added to a new request, Headers.java throws an IllegalArgumentException which crashes the app.

I'm happy to help and send a PR if you can send me some pointers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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