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

JsonSyntaxException #98

Open
aleksandrpotapov opened this issue Apr 24, 2019 · 0 comments
Open

JsonSyntaxException #98

aleksandrpotapov opened this issue Apr 24, 2019 · 0 comments

Comments

@aleksandrpotapov
Copy link

Hi guys!

Sometimes I catch error from com.microtripit.mandrillapp.lutung.model.MandrillRequestDispatcher#execute by line 90
responseString = EntityUtils.toString(response.getEntity());
If you have time, could fix it, very important to see response.

Greetings from Estonia!!!

java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 7
	at com.google.gson.stream.JsonReader.expect(JsonReader.java:339) ~[gson-2.2.2.jar:na]
	at com.google.gson.stream.JsonReader.beginObject(JsonReader.java:322) ~[gson-2.2.2.jar:na]
	at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:165) ~[gson-2.2.2.jar:na]
	... 59 common frames omitted
Wrapped by: com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 7
	at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:176) ~[gson-2.2.2.jar:na]
	at com.google.gson.Gson.fromJson(Gson.java:795) ~[gson-2.2.2.jar:na]
	at com.google.gson.Gson.fromJson(Gson.java:761) ~[gson-2.2.2.jar:na]
	at com.google.gson.Gson.fromJson(Gson.java:710) ~[gson-2.2.2.jar:na]
	at com.google.gson.Gson.fromJson(Gson.java:682) ~[gson-2.2.2.jar:na]
	at com.microtripit.mandrillapp.lutung.model.MandrillRequestDispatcher.execute(MandrillRequestDispatcher.java:90) ~[lutung-0.0.5.jar:na]
	at com.microtripit.mandrillapp.lutung.controller.MandrillUtil.query(MandrillUtil.java:46) ~[lutung-0.0.5.jar:na]
	at com.microtripit.mandrillapp.lutung.controller.MandrillMessagesApi.sendTemplate(MandrillMessagesApi.java:206) ~[lutung-0.0.5.jar:na]
	at com.microtripit.mandrillapp.lutung.controller.MandrillMessagesApi.sendTemplate(MandrillMessagesApi.java:133) ~[lutung-0.0.5.jar:na]
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