cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
4236
Views
1
Helpful
6
Replies

Jabber SDK for web "Could not reach the account server."

Xingxing Zhang
Spotlight
Spotlight

Hi, guys:

I want test “ Jabber SDK for web" , and I have already installed and configured my own Cisco Unified Communication Manager and Cisco IM&Presense Server. 

But I cannot login from this demo page, Prompt error "Could not reach the account server."


Demon and Error message and Config  check attachments!

Thank you .

xingxing


1 Accepted Solution

Accepted Solutions

Hi Xingxing,

Are you using Chrome?  I noticed the problem usually occurs on Chrome, especially if you try a secure connection.  In fact, I get that same error on Chrome right now, but it works fine on Firefox.  The problem is that Chrome doesn't request that you approve any security certificate, so it just fails.  Firefox prompts you to make an exception. You can make it work on Chrome by navigating to the BOSH URL (example below), which will present you with the option to approve the connection.  Approve it and then you should be able to log in with the sample application on Chrome (until you close Chrome, after which you need to do this again).

https://<yourserver>:7335/httpbinding

This will also happen if your security settings are different than the configuration you're using.  If you already have the server set to secure, and you try using http instead of https (and have unsecureAllowed set to true), the error will occur.


Try using Firefox and let me know if that works for you.

Also, make sure that your configuration matches the IMP configuration for security.  Here's a screen shot of my configuration for IMP at System->Security->Settings (I am using an https connection):

impsecure.png

I recommend these above settings, but you'll have to do two things:

1. Restart services, as instructed by the IMP server.  You'll see a yellow triangle that tells you which services to restart.

The yellow triangle will appear here, where (! 0) appears now:

yellow.png

2. Change your configuration to something like this:

            var demo_config = {

                httpBindingURL: "http2://10.10.170.29:7335/httpbinding",

                domain: "xxxx.com",

                username: "yourusername",

                password: "yourpassword",

                chatroom: "testroom@xxx.com",

                nickname: "nickname",

                unsecureAllowed: false

Thanks,

Nick

View solution in original post

6 Replies 6

npetrele
Cisco Employee
Cisco Employee

Something has changed since that sample code was made available, and I get the same error message.

I am currently working on a new sample Jabber SDK application but it won't be finished for a little while.

You can try the multi-user chat demo I am attaching to this post.  That should work for you, although it's not the same as the jabberwerx-ui application.

Nicholas,

Thank you so fast to reply.

npMucDemo also returns same error message, and firfox debug web console display "Blocked Cross Source Request: same-origin policy does not allow remote resource http://10.10.170.29:7335/httpbinding read on. You can move resources to the same domain or enable CORS to solve this problem."

So, I think this problem is a CONFIG trouble, I only modified npMucDemo.html , what need to modify IMPS ?

            var demo_config = {

                httpBindingURL: "http://10.10.170.29:7335/httpbinding",

                domain: "xxxx.com",

                username: "yourusername",

                password: "yourpassword",

                chatroom: "testroom@xxx.com",

                nickname: "nickname",

                unsecureAllowed: true

I am a network engineer to implement, not a developer, please detailed description.

Thanks again!

xingxing

Hi Xingxing,

Are you using Chrome?  I noticed the problem usually occurs on Chrome, especially if you try a secure connection.  In fact, I get that same error on Chrome right now, but it works fine on Firefox.  The problem is that Chrome doesn't request that you approve any security certificate, so it just fails.  Firefox prompts you to make an exception. You can make it work on Chrome by navigating to the BOSH URL (example below), which will present you with the option to approve the connection.  Approve it and then you should be able to log in with the sample application on Chrome (until you close Chrome, after which you need to do this again).

https://<yourserver>:7335/httpbinding

This will also happen if your security settings are different than the configuration you're using.  If you already have the server set to secure, and you try using http instead of https (and have unsecureAllowed set to true), the error will occur.


Try using Firefox and let me know if that works for you.

Also, make sure that your configuration matches the IMP configuration for security.  Here's a screen shot of my configuration for IMP at System->Security->Settings (I am using an https connection):

impsecure.png

I recommend these above settings, but you'll have to do two things:

1. Restart services, as instructed by the IMP server.  You'll see a yellow triangle that tells you which services to restart.

The yellow triangle will appear here, where (! 0) appears now:

yellow.png

2. Change your configuration to something like this:

            var demo_config = {

                httpBindingURL: "http2://10.10.170.29:7335/httpbinding",

                domain: "xxxx.com",

                username: "yourusername",

                password: "yourpassword",

                chatroom: "testroom@xxx.com",

                nickname: "nickname",

                unsecureAllowed: false

Thanks,

Nick

Hi, Nick.

I was not working, and now tips:

(OS 10054)  Forcibly closed by the remote host an existing connection.: proxy: prefetch request body failed to 10.10.170.29:7335 (10.10.170.29)

I'm going crazy~

Hi, Nich

It's working ..

thx!

Hello,

 

Can you I know what you have done to make it works.

Thanks,

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: