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

Some problem with irc chat line break #26

Open
d-dd opened this issue Nov 16, 2014 · 1 comment
Open

Some problem with irc chat line break #26

d-dd opened this issue Nov 16, 2014 · 1 comment

Comments

@d-dd
Copy link
Owner

d-dd commented Nov 16, 2014

Some encoding error, need to reproduce again for error message.

@d-dd
Copy link
Owner Author

d-dd commented Feb 8, 2015

Unhandled Error
Traceback (most recent call last):
File "/home/dd/.virtualenvs/yuka/local/lib/python2.7/site-packages/twisted/internet/tcp.py", line 220, in _dataReceived
rval = self.protocol.dataReceived(data)
File "/home/dd/.virtualenvs/yuka/local/lib/python2.7/site-packages/twisted/words/protocols/irc.py", line 2430, in dataReceived
basic.LineReceiver.dataReceived(self, data.replace('\r', ''))
File "/home/dd/.virtualenvs/yuka/local/lib/python2.7/site-packages/twisted/protocols/basic.py", line 571, in dataReceived
why = self.lineReceived(line)
File "/home/dd/.virtualenvs/yuka/local/lib/python2.7/site-packages/twisted/words/protocols/irc.py", line 2438, in lineReceived
self.handleCommand(command, prefix, params)
--- ---
File "/home/dd/.virtualenvs/yuka/local/lib/python2.7/site-packages/twisted/words/protocols/irc.py", line 2482, in handleCommand
method(prefix, params)
File "/home/dd/.virtualenvs/yuka/local/lib/python2.7/site-packages/twisted/words/protocols/irc.py", line 1939, in irc_PRIVMSG
self.privmsg(user, channel, message)
File "/home/dd/mikumonday/Yukari/ircClient.py", line 279, in privmsg
self.factory.handle.recIrcMsg(user, channel, msg)
File "yukari.py", line 176, in recIrcMsg
self.wsFactory.prot.relayToCyChat(line)
File "/home/dd/mikumonday/Yukari/connections/cytube/cyClient.py", line 278, in relayToCyChat
'args': {'msg': msg, 'meta': {'modflair': modflair}}})
File "/home/dd/mikumonday/Yukari/connections/cytube/cyClient.py", line 253, in sendf
json.dumps(fdict.get("args", None)).encode('utf8'))
File "/usr/lib/python2.7/json/init.py", line 243, in dumps
return _default_encoder.encode(obj)
File "/usr/lib/python2.7/json/encoder.py", line 207, in encode
chunks = self.iterencode(o, _one_shot=True)
File "/usr/lib/python2.7/json/encoder.py", line 270, in iterencode
return _iterencode(o, 0)
exceptions.UnicodeDecodeError: 'utf8' codec can't decode byte 0x92 in position 144: invalid start byte

d-dd pushed a commit that referenced this issue Mar 9, 2015
Some strings cannot be decoded by utf8.
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