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

Error message causes flood protection to trigger, kicking the bot #24

Closed
gustafe opened this issue Jan 27, 2019 · 7 comments
Closed

Error message causes flood protection to trigger, kicking the bot #24

gustafe opened this issue Jan 27, 2019 · 7 comments
Assignees
Labels
bug Something isn't working

Comments

@gustafe
Copy link

gustafe commented Jan 27, 2019

Trying to query an unknown location gives the following error

==> 13:17 < Coraxyn> Thanks Gustaf
13:17 < gustaf> .weather Isle of Man
13:17 <+pg-bot> Sorry, I got an error: The value of VECTOR is "
Quits: pg-bot

Message in REPL:

==> UNHANDLED-EVENT:3757580221: PRIVMSG: Coraxyn #photogeeks "Thanks Gustaf"
UNHANDLED-EVENT:3757580224: ERR_UNKNOWNCOMMAND: cherryh.freenode.net pg-bot "Unknown command"
UNHANDLED-EVENT:3757580224: ERR_UNKNOWNCOMMAND: cherryh.freenode.net pg-bot "Unknown command"
UNHANDLED-EVENT:3757580224: ERR_UNKNOWNCOMMAND: cherryh.freenode.net pg-bot <title>Runtime "Unknown command"
UNHANDLED-EVENT:3757580224: ERR_UNKNOWNCOMMAND: cherryh.freenode.net pg-bot <meta "Unknown command"
UNHANDLED-EVENT:3757580224: ERROR: "Closing Link: 165.227.165.91 (Excess Flood)"

@tmolnar0831
Copy link
Owner

<st_iron> .weather isle of man
Sulby, Isle of Man, Partly cloudy, 4.3°C, feels like -2.3°C,
wind 50.8kph NW, precipitation 0.0mm, humidity 62%, UV 2.0

@tmolnar0831 tmolnar0831 self-assigned this Jan 27, 2019
@tmolnar0831 tmolnar0831 added the bug Something isn't working label Jan 27, 2019
@tmolnar0831
Copy link
Owner

I tried a series of problematic commands in the test room with OQ, but we cannot reproduce the issue.

@gustafe
Copy link
Author

gustafe commented Jan 27, 2019

Output should still be limited to 3 or 4 lines (even errors) to prevent a denial of service attack on the bot.

@tmolnar0831
Copy link
Owner

It seems that the main issue is the "newline" character in the response from HTTP. It must be stripped first, because the IRCd treats it as a command evaluation. The bot can split the long output to chunks of messages.

@gustafe
Copy link
Author

gustafe commented Jan 28, 2019

Another example...

error.txt

@tmolnar0831
Copy link
Owner

#25 fixes it.

@tmolnar0831
Copy link
Owner

I close it now, it can be reopened if necessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants