librelist archives

« back to archive

issue connecting to prosody ( BOSH seems ok )

issue connecting to prosody ( BOSH seems ok )

From:
nath
Date:
2015-05-02 @ 16:17
I’m running XMPP server “prosody” version 0.9.8 on Centos 7 with Apache. 
I’m using converse.js-0.9.3

I have set up BOSH, and seems to work :

——————————-
# curl -i http://chat.thinktank.rocks/http-bind/ 
<http://chat.thinktank.rocks/http-bind/>
HTTP/1.1 200 OK
Date: Sat, 02 May 2015 15:39:39 GMT
Server: Apache/2.4.6 (CentOS) PHP/5.4.16
Content-Length: 219
Content-Type: text/html; charset=UTF-8

<html><body>
	<p>It works! Now point your BOSH client to this URL to connect to Prosody.</p>
	<p>For more information see <a 
href="http://prosody.im/doc/setting_up_bosh 
<http://prosody.im/doc/setting_up_bosh>">Prosody: Setting up BOSH</a>.</p>
———————————


I also see the same satisfactory message,  if i do 
“http://chat.thinktank.rocks:5280/http-bind 
<http://chat.thinktank.rocks:5280/http-bind>” in a browser from remote 
client to the server. 


I have a simple index.html file, using the sample code that is detailed in
the conversejs quick-guide :


———————————-
<!DOCTYPE html>
<html lang="en">
  <head>
<link rel="stylesheet" type="text/css" media="screen" href="css/converse.min.css">
<script src="builds/converse.min.js"></script>
  </head>

<body>
<p>hello world</p>
  </body>
<script>
require(['converse'], function (converse) {
    converse.initialize({
        bosh_service_url: 'https://chat.thinktank.rocks:5280/http-bind 
<https://chat.thinktank.rocks:5280/http-bind>', // Please use this 
connection manager only for testing purposes
        i18n: locales.en, // Refer to ./locale/locales.js to see which 
locales are supported
        show_controlbox_by_default: true,
        roster_groups: true
    });
});
</script>
</html>
———————————

When, i try to connect via the webpage my index.html provides, using the 
login form that the javascript in the index.html provides, the ‘busy’ icon
just spins, as if trying to connect. 

Using the same login details, I can connect to prosody from a remote 
client app ( in this case “Adium” )

I’ve tried viewing the web console Network output in firefox, but I 
couldn’t spot any clues there. Have also tried connecting using Chrome, 
but same issue. 

At the moment, i have a very simple setup, no pre-binding, or ssl etc.. 
just the basics as far as i can see. 

Running out of things to check, looking for some idea of what to try next 
to find the issue…. If someone can help hit me with a clue-stick please :)

Re: [conversejs] issue connecting to prosody ( BOSH seems ok )

From:
Jc Brand
Date:
2015-05-02 @ 16:55
Add "debug: true" to the converse.initialize call and then check the 
browser console again. 



On 02 Mei 2015 6:17:24 nm. CEST, nath <nathan@tokyo.email.ne.jp> wrote:
>I’m running XMPP server “prosody” version 0.9.8 on Centos 7 with
>Apache. I’m using converse.js-0.9.3
>
>I have set up BOSH, and seems to work :
>
>——————————-
># curl -i http://chat.thinktank.rocks/http-bind/
><http://chat.thinktank.rocks/http-bind/>
>HTTP/1.1 200 OK
>Date: Sat, 02 May 2015 15:39:39 GMT
>Server: Apache/2.4.6 (CentOS) PHP/5.4.16
>Content-Length: 219
>Content-Type: text/html; charset=UTF-8
>
><html><body>
>	<p>It works! Now point your BOSH client to this URL to connect to
>Prosody.</p>
>	<p>For more information see <a
>href="http://prosody.im/doc/setting_up_bosh
><http://prosody.im/doc/setting_up_bosh>">Prosody: Setting up
>BOSH</a>.</p>
>———————————
>
>
>I also see the same satisfactory message,  if i do
>“http://chat.thinktank.rocks:5280/http-bind
><http://chat.thinktank.rocks:5280/http-bind>” in a browser from remote
>client to the server. 
>
>
>I have a simple index.html file, using the sample code that is detailed
>in the conversejs quick-guide :
>
>
>———————————-
><!DOCTYPE html>
><html lang="en">
>  <head>
><link rel="stylesheet" type="text/css" media="screen"
>href="css/converse.min.css">
><script src="builds/converse.min.js"></script>
>  </head>
>
><body>
><p>hello world</p>
>  </body>
><script>
>require(['converse'], function (converse) {
>    converse.initialize({
>bosh_service_url: 'https://chat.thinktank.rocks:5280/http-bind
><https://chat.thinktank.rocks:5280/http-bind>', // Please use this
>connection manager only for testing purposes
>i18n: locales.en, // Refer to ./locale/locales.js to see which locales
>are supported
>        show_controlbox_by_default: true,
>        roster_groups: true
>    });
>});
></script>
></html>
>———————————
>
>When, i try to connect via the webpage my index.html provides, using
>the login form that the javascript in the index.html provides, the
>‘busy’ icon just spins, as if trying to connect. 
>
>Using the same login details, I can connect to prosody from a remote
>client app ( in this case “Adium” )
>
>I’ve tried viewing the web console Network output in firefox, but I
>couldn’t spot any clues there. Have also tried connecting using Chrome,
>but same issue. 
>
>At the moment, i have a very simple setup, no pre-binding, or ssl etc..
>just the basics as far as i can see. 
>
>Running out of things to check, looking for some idea of what to try
>next to find the issue…. If someone can help hit me with a clue-stick
>please :)

-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.