cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1061
Views
0
Helpful
1
Replies

Basic Jabber Chat Demo - Access Denied

tmgordon03
Level 1
Level 1

I wanted to go through a few of the example pages supplied by Cisco as I will be creating an offline status page that stores last known Jabber status in a database. Our receptionists need to be able to see what somebodies custom status was before they logged off (something like "leaving early, be back tomorrow at 8AM" is much more helpful than "offline"). Anyway, that's irrelevant to my issue I suppose.

https://developer.cisco.com/site/jabber-websdk/learn/im-and-presence-how-to/use-jabber-im-core-apis/

I changed all of this info to match my server settings:

var demoConfig = {

  domain: "domain.com", //the domain specified for your CUP server

  httpBindingURL: "https://cups-02.domain.com:7335/httpbinding/", //the BOSH url for your server

  unsecureAllowed: false //unsecureAllowed should be true if plaintext authentication is allowed over unencrypted or unsecured HTTP channels

  };

  jabberwerx._config.unsecureAllowed = demoConfig.unsecureAllowed;  // Tries both true and false here

  jabberwerx._config.httpBindingURL = demoConfig.httpBindingURL;

I can get to the http binding URL successfully:

This URI is for XMPP communication via the BOSH protocol.

Please reference the following protocols:

•RFC 3920: Extensible Messaging and Presence Protocol (XMPP): Core

•RFC 3921: Extensible Messaging and Presence Protocol (XMPP): Instant Messaging and Presence

•XEP-0124: Bidirectional-streams Over Synchronous HTTP (BOSH)

•XEP-0206: XMPP Over BOSH

The error I get on the webpage shows:

Log:

Could not connect: <stream:error xmlns:stream="http://etherx.jabber.org/streams"><service-unavailable xmlns="urn:ietf:params:xml:ns:xmpp-streams"/></stream:error>

The error in the console shows:

SCRIPT7002: XMLHttpRequest: Network Error 0x80070005, Access is denied.

index.html

network timeout retry 1

SCRIPT7002: XMLHttpRequest: Network Error 0x80070005, Access is denied.

index.html

network timeout retry 2

SCRIPT7002: XMLHttpRequest: Network Error 0x80070005, Access is denied.

index.html

network timeout retry 3

closed: <stream:error xmlns:stream="http://etherx.jabber.org/streams"><service-unavailable xmlns="urn:ietf:params:xml:ns:xmpp-streams"/></stream:error>

Let me know what you think. The username and password is correct. I have tried a few different users, including standard users and administrators.

1 Reply 1

npetrele
Cisco Employee
Cisco Employee

It's been forever since I've messed with the default demo code.  Give this one a try -- I wrote this more complete demo.  You can edit JabberDemo.html to set the definitions of demoConfig, or you can just enter the information in the login dialog.  This demo has persistence, which means you can refresh the page and you'll still be logged in.  It's not bug-free, but it's pretty stable.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: