candy-chat / candy

JavaScript-based multi-user chat client for XMPP.
http://candy-chat.github.io/candy
MIT License
1.32k stars 370 forks source link

Error: x-strophe-bad-non-anon-jid #509

Open xinthose opened 7 years ago

xinthose commented 7 years ago

Hello. I am trying to get Candy working with Openfire, but I get this error x-strophe-bad-non-anon-jid when I try to connect to Candy. I am using the correct username and password. I am using IIS on Windows 10.

HTML Head

<link href="osrc/candy-2.2.0/libs.min.css" rel="stylesheet" />
<link href="osrc/candy-2.2.0/res/default.css" rel="stylesheet" />
<script src="osrc/candy-2.2.0/libs.min.js"></script>
<script src="osrc/candy-2.2.0/candy.min.js"></script>

JavaScript

Candy.init("http://desktop-bn13agh:7070/http-bind/", {
    core: {
        // only set this to true if developing / debugging errors
        debug: true,
        // autojoin is a *required* parameter if you don't have a plugin (e.g. roomPanel) for it
        //   true
        //     -> fetch info from server (NOTE: does only work with openfire server)
        //   ['test@conference.example.com']
        //     -> array of rooms to join after connecting
        autojoin: ["testing@conference.desktop-bn13agh"]
        //autojoin: true
    },
    view: {
        assets: "../res/"
    }
});
Candy.Core.connect("admin", "admin");

Pictures of Setup and Errors

Candy - Google Chrome Output with Error candy - google chrome output with error IIS - URL Rewrite Rule iis - url rewrite rule Openfire - HTTP Bind Settings openfire - http bind settings Openfire - Client Management openfire - client management Openfire - Group Chat openfire - group chat Openfire - Bookmarks openfire - bookmarks Openfire - Candy Plugin Login Fail openfire - candy plugin login fail

Please help me to get this working. Let me know what part of my configuration is wrong. Thank you.

xinthose commented 7 years ago

I got Converse.js to work with Openfire easily. It seems to be more active and better developed as well.