-
-
Notifications
You must be signed in to change notification settings - Fork 34
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
Attempt to decode JSON with unexpected mimetype: text/html #231
Comments
Hi! Sorry to hear about the trouble with your setup. I'm not sure what the cause is, but I have a hunch... I suspect you may have another XMPP server (such as prosody or ejabberd) running on the host machine. This would also make sense, if the server was stopped, an apt upgrade may have updated the XMPP server package which would cause it to start up again and interfere with Snikket. In your logs, the Snikket web portal is trying to communicate with the XMPP server and it is getting an unexpected response. I suspect it's communicating with the XMPP server on the host, instead of the one that is bundled with Snikket. The solution is to remove any XMPP server on the host, and then restart Snikket ( |
So I did some thorough checking, because this does make sense, I had tried other XMPP servers before landing on Snikket, but I can't seem to find anything else running that could be blocking Snikket. I don't have prosody or ejabberd installed anymore, and I checked with netstat for every port that Snikket uses with my instance down, and nothing came up. The only things I can think of are that I did try to deploy XMPP-web, and ended up not using it, so I looked for traces of that, but couldn't find files anywhere for it on my systems. Additionally, it's possible my reverse proxy may be misconfigured, but I can't see how it could be, as it looks near identical to the base example on the docs with localhost swapped out for my system's IPv4 address (my Caddy instance runs on a different machine), and the domains swapped out from the examples. |
hello i know this is months old but just popping in to say i looked at this with a fresh mind like 7 months later, did some debugging, and somehow it started working again? it persisted after a docker pull but i just did some messing around and suddenly it's working again. to anyone that has this issue i can't really offer any fixes because i don't know what i did to fix this necessarily or what was causing it but it might be the internal prosody configuration. i saw some conflicts with port 5280 which is used by the internal HTTP API. so try looking into that. marking this as closed as it is now fixed for me. |
Hi, I was running my xmpp instance just fine up until a server apt upgrade and restart yesterday. Now, I am unable to log into my snikket accounts, with errors on the web portal and on the Gajim client.
The web portal error always reads as an internal error with the following error codes:
When I check the logs upon portal login attempt, I see the following (my subdomain changed to 'chat.example.com'):
And when I try to log in via Gajim, I see the following error in the logs from snikket service:
I've updated Snikket with docker compose pull so I was on the latest version. I did this pull after the apt upgrade on the machine. I'm not sure if this is a Snikket problem or a misconfiguration on my part. My ports are forwarded.
snikket.conf contents (domains and email changed for privacy):
I am new to opening Github issues and using Github in general so please excuse any mistakes. Thank you.
The text was updated successfully, but these errors were encountered: