twitter4j.TwitterException: Twitter returned a non-XML response:<?xml > >> version="1.0" encoding="UTF-8"?> > >> <statuses type="array"> > >> <status> > >> .... <!-- removed for brevity --> > >> </status> > >> </statuses> >

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 Twitterati, 1 year ago
Twitter returned a non-XML response:<?xml version="1.0" encoding="UTF-8"?> <statuses type="array"> <status> .... <!-- removed for brevity --> </status> </statuses>
via Google Groups by perfect8128, 2 years ago
The response body was not well-formed: <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/ TR/1999/REC-html401-19991224/strict.dtd"> <!-- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd
twitter4j.TwitterException: Twitter returned a non-XML response:<?xml > >> version="1.0" encoding="UTF-8"?> > >> <statuses type="array"> > >> <status> > >> .... <!-- removed for brevity --> > >> </status> > >> </statuses> >
at twitter4j.http.Response.asDocument(Response.java:129)
at twitter4j.Status.constructStatuses(Status.java:206)

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.