hoangnguyen92 / chatter-bot-api

Automatically exported from code.google.com/p/chatter-bot-api
0 stars 0 forks source link

ExpatError: not well-formed (invalid token) #13

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Start bot-chat
2. keep chating for a while
3. crash:

Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib64/python2.7/threading.py", line 811, in __bootstrap_inner
    self.run()
  File "/usr/lib64/python2.7/threading.py", line 764, in run
    self.__target(*self.__args, **self.__kwargs)
  File "bot.py", line 178, in bot
    AI(group,peer,message)
  File "bot.py", line 84, in AI
    reply=callmodule(message,peer)
  File "bot.py", line 62, in callmodule
    reply = botsessions[peer].think(message)
  File "/home/ufa/Programas_priv/tg/python-telegram-bot/chatterbotapi.py", line 61, in think
    return self.think_thought(thought).text
  File "/home/ufa/Programas_priv/tg/python-telegram-bot/chatterbotapi.py", line 153, in think_thought
    response_dom = xml.dom.minidom.parseString(response)
  File "/usr/lib64/python2.7/xml/dom/minidom.py", line 1931, in parseString
    return expatbuilder.parseString(string)
  File "/usr/lib64/python2.7/xml/dom/expatbuilder.py", line 940, in parseString
    return builder.parseString(string)
  File "/usr/lib64/python2.7/xml/dom/expatbuilder.py", line 223, in parseString
    parser.Parse(string, True)
ExpatError: not well-formed (invalid token): line 8, column 5

What is the expected output? What do you see instead?
Chatting forever

What version of the product are you using? On what operating system?
Latest on Fedora Linux latest

Please provide any additional information below.
Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib64/python2.7/threading.py", line 811, in __bootstrap_inner
    self.run()
  File "/usr/lib64/python2.7/threading.py", line 764, in run
    self.__target(*self.__args, **self.__kwargs)
  File "bot.py", line 178, in bot
    AI(group,peer,message)
  File "bot.py", line 84, in AI
    reply=callmodule(message,peer)
  File "bot.py", line 62, in callmodule
    reply = botsessions[peer].think(message)
  File "/home/ufa/Programas_priv/tg/python-telegram-bot/chatterbotapi.py", line 61, in think
    return self.think_thought(thought).text
  File "/home/ufa/Programas_priv/tg/python-telegram-bot/chatterbotapi.py", line 153, in think_thought
    response_dom = xml.dom.minidom.parseString(response)
  File "/usr/lib64/python2.7/xml/dom/minidom.py", line 1931, in parseString
    return expatbuilder.parseString(string)
  File "/usr/lib64/python2.7/xml/dom/expatbuilder.py", line 940, in parseString
    return builder.parseString(string)
  File "/usr/lib64/python2.7/xml/dom/expatbuilder.py", line 223, in parseString
    parser.Parse(string, True)
ExpatError: not well-formed (invalid token): line 8, column 5

Original issue reported on code.google.com by ufa.og...@gmail.com on 10 Oct 2014 at 1:48