Skip to content

OkHttpClient throws illegalStateException when sever sends 100-continue responses prior to the actual response #8739

Open
@londonCyclist

Description

@londonCyclist

OKHttpClient (4.12.0) crashes with illegalStateException when the server sends a 100-Continue response before the actual response; this bug is similar to #3628;

Details of this issue are specified in https://stackoverflow.com/questions/79567656/okhttpclient-throws-illegalstateexception-when-server-responds-with-100-continue

Tested it on three different clients using the same server , all of them handles 100-continue responses from server when the clients are not expecting 100-continue response (i.e when expect 100-continue is not specified in the header , the client would just ignore the 100-continue response from server and wait for actual response ).

Expected behaviour would be, OkHttpClient to gracefully handle a 100-continue response from a server without crashing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugBug in existing code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions