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

panics with "interface conversion: jid.bare is not jid.WithResource: missing method Resource" #526

Closed
ajs124 opened this issue Mar 21, 2019 · 2 comments

Comments

@ajs124
Copy link

ajs124 commented Mar 21, 2019

I'm trying to update coyim in nixpkgs from 0.3.7 to 0.3.10, but my account fails to connect (worked with 0.3.7) and then coyim panics like this:

panic: interface conversion: jid.bare is not jid.WithResource: missing method Resource

goroutine 82 [running]:
github.com/coyim/coyim/session.(*session).receivedClientPresence(0xc000278000, 0xc00058e000, 0x100000000000001)
        /build/go/src/github.com/coyim/coyim/session/session.go:277 +0x573
github.com/coyim/coyim/session.(*session).receiveStanza(0xc000278000, 0xc0000a8240, 0xc000278001)
        /build/go/src/github.com/coyim/coyim/session/session.go:353 +0x2ac
github.com/coyim/coyim/session.(*session).watchStanzas(0xc000278000)
        /build/go/src/github.com/coyim/coyim/session/session.go:369 +0xa9
created by github.com/coyim/coyim/session.(*session).Connect
        /build/go/src/github.com/coyim/coyim/session/session.go:794 +0x24a
@olabini
Copy link
Contributor

olabini commented Mar 22, 2019

That's very strange. It seems to imply that someone on your network is sending presence updates without a Resource element and with no type. This doesn't really have a meaning according to XMPP, and is likely the sign of a malfunctioning client or server.

@olabini
Copy link
Contributor

olabini commented Mar 22, 2019

OK, I've added a workaround for this problem. I'll try to cut a new release within a few days with this and another fix int it. Thanks.

@olabini olabini closed this as completed Mar 22, 2019
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

2 participants