pierredavidbelanger / chatter-bot-api

A Mono/.NET, JAVA, Python and PHP chatter bot API that supports Cleverbot, JabberWacky and Pandorabots.
182 stars 72 forks source link

org.xml.sax.SAXParseException; Premature end of file. #46

Closed ghost closed 7 years ago

ghost commented 7 years ago

[Fatal Error] :-1:-1: Premature end of file. org.xml.sax.SAXParseException; Premature end of file. at org.apache.xerces.parsers.DOMParser.parse(Unknown Source) at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source) at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:121) at com.google.code.chatterbotapi.Utils.xPathSearch(Utils.java:143) at com.google.code.chatterbotapi.Pandorabots$Session.think(Pandorabots.java:53) at com.google.code.chatterbotapi.Pandorabots$Session.think(Pandorabots.java:61)

pierredavidbelanger commented 7 years ago

From the stack trace, I can guess that pandorabots talk XML API returned an empty response.

This should not happen, except if they are down or if you have network problems. They usually respond with something (at least an error message).

I will not investigate this one, except if you can provide me a way to reproduce this at will, in this case please re open the issue.

Thank you!

ghost commented 7 years ago

@pierredavidbelanger I think at the time I tried to access, the PandoraBots was offline.

Now works perfectly.

pierredavidbelanger commented 7 years ago

Thank you for the feedback.