Code Monkey home page Code Monkey logo

hermes's People

Watchers

 avatar  avatar

hermes's Issues

Fix crash on non utf-8 characters

[ERROR]  Crash
Traceback (most recent call last):
  File "/home/hermes/hermes/hermes/hermes.py", line 435, in run_hermes
    hermes.start()
  File "/usr/local/lib/python3.5/dist-packages/irc/bot.py", line 340, in start
    super(SingleServerIRCBot, self).start()
  File "/usr/local/lib/python3.5/dist-packages/irc/client.py", line 1198, in start
    self.reactor.process_forever()
  File "/usr/local/lib/python3.5/dist-packages/irc/client.py", line 851, in process_forever
    consume(infinite_call(one))
  File "/usr/local/lib/python3.5/dist-packages/more_itertools/recipes.py", line 160, in consume
    deque(iterator, maxlen=0)
  File "/usr/local/lib/python3.5/dist-packages/jaraco/itertools.py", line 413, in <genexpr>
    return (f() for _ in itertools.repeat(None))
  File "/usr/local/lib/python3.5/dist-packages/irc/client.py", line 832, in process_once
    self.process_data(in_)
  File "/usr/local/lib/python3.5/dist-packages/irc/client.py", line 796, in process_data
    conn.process_data()
  File "/usr/local/lib/python3.5/dist-packages/irc/client.py", line 276, in process_data
    for line in self.buffer:
  File "/usr/local/lib/python3.5/dist-packages/jaraco/stream/buffer.py", line 105, in lines
    self.handle_exception()
  File "/usr/local/lib/python3.5/dist-packages/jaraco/stream/buffer.py", line 103, in lines
    yield line.decode(self.encoding, self.errors)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa3 in position 71: invalid start byte

Implement health check on socket connection

Sometimes, if hermes gets too flooded with messages at once, the socket connection will die. We need to ensure the healthiness of the socket, and if it's not healthy, restart it.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.