Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Occasional MalformedJsonException #82

Open
mychalvlcek opened this issue Sep 27, 2024 · 0 comments
Open

Occasional MalformedJsonException #82

mychalvlcek opened this issue Sep 27, 2024 · 0 comments

Comments

@mychalvlcek
Copy link

Hello , using latest version 2.4.1 and very occasionly I am getting MalformedJsonException error from somewhere inside when parsing response from sailthru API

Wrapped by: com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 8 path $
	at com.google.gson.Gson.assertFullConsumption(Gson.java:1027)
	at com.google.gson.Gson.fromJson(Gson.java:1017)
	at com.google.gson.Gson.fromJson(Gson.java:959)
	at com.google.gson.Gson.fromJson(Gson.java:927)
	at com.sailthru.client.handler.JsonHandler.parseResponse(JsonHandler.java:33)
	at com.sailthru.client.http.SailthruHandler.handleResponse(SailthruHandler.java:56)
	at io.opentelemetry.javaagent.instrumentation.apachehttpclient.v4_0.WrappingStatusSettingResponseHandler.handleResponse(WrappingStatusSettingResponseHandler.java:42)
	at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:223)
	at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:165)
	at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:140)
	at com.sailthru.client.http.SailthruHttpClient.executeHttpRequest(SailthruHttpClient.java:123)
	at com.sailthru.client.AbstractSailthruClient.httpRequest(AbstractSailthruClient.java:177)
	at com.sailthru.client.AbstractSailthruClient.httpRequestJson(AbstractSailthruClient.java:201)
	at com.sailthru.client.AbstractSailthruClient.apiPost(AbstractSailthruClient.java:283)
	at com.sailthru.client.SailthruClient.send(SailthruClient.java:115)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant