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 · 4 comments
Open

Rejoin all channels after receiving 406 from the server #109

sokoow opened this issue Jun 18, 2016 · 4 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="[email protected]/2d0lgyorvi" type="error" from="[email protected]" 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.

@JeffZane
Copy link

{"appScUrl":"","deployDevice":"","deployName":"","deployTarget":"","id":"d0e9adae-baef-4a97-a7f6-18e2414286f6","imei":"","lat":"","messageType":"text","path":"","scUrl":"","searchScore":0.0,"senderJid":"1716341926932@zed","senderName":"cs9","showType":"","text":"147","time":"2024-06-27 16:25:26","toJid":"[email protected]","toName":"群组cs1220240627162117","userId":"1716341926932","uuid":"d0e9adae-baef-4a97-a7f6-18e2414286f6"}

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

3 participants