Questions tagged [protocolexception]

41 questions
20
votes
7 answers

Getting ProtocolException runtime error Blazor project

I'm developing a simple Blazor ASP.NET CORE Web Assembly project with Visual Studio Professional 2019 version 16.8.1 (the exception also happens in version 16.8.0). Sometimes when I start the application I get a runtime error 'Failed to launch debug…
Richard Wrench
  • 301
  • 2
  • 5
19
votes
4 answers

ProtocolException: Expected ':status' header not present

Retrofit network calls fails with a Protocol Exception suddenly in a working app. The app was working till yesterday and today all the network calls fails. The calls works fine with HTTP but fails with HTTPS. Here is the…
9
votes
6 answers

Getting error detail from WCF REST

I have a REST service consumed by a .Net WCF client. When an error is encountered the REST service returns an HTTP 400 Bad Request with the response body containing JSON serialised details. If I execute the request using Fiddler, Javascript or…
Keith
  • 150,284
  • 78
  • 298
  • 434
8
votes
2 answers

Dealing with WCF service restart on client-side

I've got a GUI client which is running against a WCF services hosted as a Windows service on a server box. The WCF service is running in PerCall InstanceContextMode, and the client has a singleton instance of the service client and I want to avoid…
theburningmonk
  • 15,701
  • 14
  • 61
  • 104
5
votes
1 answer

Why would an XML-RPC API endpoint randomly throw a ProtocolError -1?

We have built an extensive middleware system around Magento's XML-RPC API. We've wrapped the endpoint with Python and are doing a lot of multicalls. At a seemingly random interval, the API responds with ProtocolError for…
4
votes
2 answers

Throwing FaultException using Custom Exception Handler EL WCF

So I'm trying to use Enterprise Library in my WCF service to do some of the exception-related work for me. My idea is to set up a "Custom Exception Handler" for say "NullReferenceException" and in the "Custom Exception Handler" create…
4
votes
1 answer

MediaHTTPConnection: readAt 1343667 / 32768 => java.net.ProtocolException

I'm getting java.net.ProtocolException for some of the videos. This is how passing the URL to videoview. Did anyone face this before? videoview.setVideoURI(videourl);
3
votes
1 answer

okhttp3 gives a Protocol Exception error - Too many follow-up requests: 21

I have TokenAuthenticator class that implement Authenticator interface. TokenAuthenticator class look like this: import java.io.IOException; import okhttp3.Authenticator; import okhttp3.Request; import okhttp3.Response; import okhttp3.Route; import…
Moti
  • 462
  • 2
  • 6
  • 18
3
votes
0 answers

Android retrofit multipart request ProtocolException

I want to make a post with retrofit to a SlimApi endpoint. But everytime im making a request i'm getting: java.net.ProtocolException: expected 638 bytes but received 2048 My interface looks like this, @Multipart @PUT("pictures") Call
F.Zw.
  • 41
  • 6
3
votes
0 answers

MediaPlayer gives ProtocolException for playing some videos

I'm using MediaPlayer and everything is fine but with some videos. The videos which have problem to playing is playing correctly in the native Android player. I'm getting following warning in the logcat for paying those unplayable…
Alex
  • 1,623
  • 1
  • 24
  • 48
2
votes
2 answers

ProtocolException in MediaPlayer streaming Service (MediaHTTPConnection: readAt 20709376 / 32768 => java.net.ProtocolException)

I've made an Android app that main feature is to play audio stream from my server. But for some reason music stops playing after about 20 minutes and the app is throwing ProtocolException (logs from app on Android Studio logcat image). Android…
2
votes
0 answers

java.net.ProtocolException: unexpected end of stream Android

I am working on Android application where I download the files from the server using below code: Code: myURLConnection = (HttpURLConnection) myURL.openConnection(); myURLConnection.setUseCaches(false); …
2
votes
2 answers

Retrofit java.net.ProtocolException: Expected ':status' header not present

Retrofit network calls fails with a Protocol Exception suddenly in a working app. The app was working till yesterday and today all the network calls fails. The calls works fine with HTTP and with some HTTPS except my production endpoint. It seems…
Bajrang Hudda
  • 3,028
  • 1
  • 36
  • 63
2
votes
0 answers

URLConnection - Cannot write request body after response has been read

I have an array of objects that i'm trying to POST through to an API. The first object will go through as it should, and then i get: java.net.ProtocolException: cannot write request body after response has been read I'm fairly certain it's just the…
Noodelz
  • 143
  • 1
  • 11
1
2 3