XML Unmarshall Document
Opened this issue · 2 comments
Saiirex commented
Hey, if i am trying to do this:
HttpLoggingInterceptor loggingInterceptor = new HttpLoggingInterceptor();
loggingInterceptor.setLevel(HttpLoggingInterceptor.Level.BODY);
OkHttpClient httpClient = new OkHttpClient.Builder()
.addNetworkInterceptor(loggingInterceptor)
.addInterceptor(new ErrorInterceptor())
.cookieJar(new DefaultCookieJar(new CookieHashSet()))
.build();
Instagram instagram = new Instagram(httpClient);
PageObject<Media> media = instagram.getMedias("internetgangster_", 1);
i receive the following exception:
javax.xml.bind.UnmarshalException
- with linked exception:
[Exception [EclipseLink-25004] (Eclipse Persistence Services - 2.7.0.v20170811-d680af5): org.eclipse.persistence.exceptions.XMLMarshalException
Exception Description: An error occurred unmarshalling the document
Internal Exception: javax.json.stream.JsonParsingException: Unexpected char 60 at (line no=1, column no=1, offset=0)]
This has worked before like 30x times, but now i am receiving this error.
I was thinking this are just limits from Instagram, but i have tried to run this on my server and local and on both cases its crashes...
Saiirex commented
Okay i dont know why, but it works now. I have changed absolutly nothing. It would be really nice to know why this error occured.
ErShakirAnsari commented
I'm still getting this error, dont know why?