java.net.ProtocolException: Expected HTTP 101 response but was '400 Bad Request'

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Google Groups by Henry Saputra, 1 year ago
Expected HTTP 101 response but was '400 Bad Request'
via Google Groups by dser...@gmail.com (JIRA), 11 months ago
Expected HTTP 101 response but was '404 Not Found'
via Google Groups by cj...@java.net (JIRA), 1 year ago
Expected HTTP 101 response but was '500 Internal Server Error'
via GitHub by hsaputra
, 1 year ago
Expected HTTP 101 response but was '400 Bad Request'
via GitHub by rawlingsj
, 1 year ago
Expected HTTP 101 response but was '500 Internal Server Error'
via GitHub by rawlingsj
, 1 year ago
Expected HTTP 101 response but was '200 OK'
java.net.ProtocolException: Expected HTTP 101 response but was '400 Bad Request'
at com.squareup.okhttp.ws.WebSocketCall.createWebSocket(WebSocketCall.java:123)
at com.squareup.okhttp.ws.WebSocketCall.access$000(WebSocketCall.java:40)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Know the solutions? Share your knowledge to help other developers to debug faster.