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

Rejoin all channels after receiving 406 from the server #109

Open
sokoow opened this issue Jun 18, 2016 · 3 comments
Open

Rejoin all channels after receiving 406 from the server #109

sokoow opened this issue Jun 18, 2016 · 3 comments
Milestone

Comments

@sokoow
Copy link

sokoow commented Jun 18, 2016

I got something like this received from the server:

[Sat Jun 18 2016 04:31:11 GMT+0200 (CEST)] ERROR [xmpp error]<message to="droid@puczat.pl/2d0lgyorvi" type="error" from="public@conference.puczat.pl" xmlns:stream="http://etherx.jabber.org/streams"><body>heniek: Zegnaj</body><error code="406" type="modify"><not-acceptable xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/></error></message>

and then the bot just sits there connected to the server, but disconnected from the channel. Some sort of retry logic on errors should be implemented please.

@markstory
Copy link
Contributor

What caused the 406 error?

@markstory markstory added this to the 0.2.x milestone Jun 18, 2016
@sokoow
Copy link
Author

sokoow commented Jun 18, 2016

It's openfire so all strange stuff comes out of it, basically it looks like one of users have IMed the bot and then it got 406

@markstory
Copy link
Contributor

That's annoying. I don't use openfire, and I've never seen this behavior with ejabberd. If you can put together a fix I'm happy to help with tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants