Skip to content
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

Can't connect to XMPP host #1

Open
mauretto79 opened this issue Jan 17, 2015 · 14 comments
Open

Can't connect to XMPP host #1

mauretto79 opened this issue Jan 17, 2015 · 14 comments

Comments

@mauretto79
Copy link

There is only an interminable Connecting label, without any timeout error or similar.

@orangecoloured
Copy link
Owner

What host are you trying to connect to? Is it a BOSH server?

@leo7r
Copy link

leo7r commented Mar 3, 2015

I am trying to connect to my bosh server (using prosody) but it only shows me "Connecting" label. I think it connects the user because I have pidgin and I can see the user connected. But in the IX client it does not pass through the dialog.

@orangecoloured
Copy link
Owner

I was testing it on my ejabbered server and also I connected to the xmpp.jp server and everything went ok.

Could you check what response you are getting from your server? Maybe I missed something while processing the connected status.

I will check on this in.

@leo7r
Copy link

leo7r commented Mar 3, 2015

mod_bosh                                  debug We have an open request, so sending on that
mod_bosh                                  debug Request destroyed: table: 0289E780
bosh73509692-ae6f-498f-97e5-83612ff10e06  debug BOSH session marked as inactive (for 60s)
mod_bosh                                  debug Session 73509692-ae6f-498f-97e5-83612ff10e06 has
 0 out of 1 requests open
mod_bosh                                  debug and there are 0 things in the send_buffer:
mod_bosh                                  debug Handling new request table: 028A4068: <body rid=
'1321713895' xmlns='http://jabber.org/protocol/httpbind' sid='73509692-ae6f-498f-97e5-83612ff10e
06'/>
----------
mod_bosh                                  debug BOSH body open (sid: 73509692-ae6f-498f-97e5-836
12ff10e06)
mod_bosh                                  debug Session 73509692-ae6f-498f-97e5-83612ff10e06 has
 1 out of 1 requests open
mod_bosh                                  debug and there are 0 things in the send_buffer:
mod_bosh                                  debug Have nothing to say, so leaving request unanswer
ed for now

This is the response from the server. It is leaving the request unanswered for some reason. Could be an authentication problem in the server? I test it using pidgin and no error arise.

@orangecoloured
Copy link
Owner

The only way to know for sure - compare requests and answers when the connection goes well and when it stucks.

Is your server open? Do you have any test account credentials for your server? Could I use it to reproduce this case?

@leo7r
Copy link

leo7r commented Mar 3, 2015

No I'm testing in localhost. My server is not using authentication security, could this be the issue? IX client require a server to provide encryption?

@orangecoloured
Copy link
Owner

Do I understand correctly? You don't have to input your password to login onto your server, right? Only jid?

@leo7r
Copy link

leo7r commented Mar 3, 2015

I do have to input password for the accounts in my server.

What I mean by authentication security is using 'ssl' for encryption. I was not using it and I thought that not using 'ssl' was the problem but now I make some certs and my Pidgin client using BOSH can connect. What do you need to reproduce this case?

@orangecoloured
Copy link
Owner

Well, I need to be able to connect to your server and see what's happening. =)
But as it's a local server I think I'll try to run my own prosody server. Hopefully I'll find time for this on the weekend.

@leo7r
Copy link

leo7r commented Mar 3, 2015

Ey! I installed Ejabberd and using this server I can connect using IX. Now I have problems getting contact list, update profile, etc.

Contact list is not working. I have a buddy added and it doesn't appear there.

If I start a chat using Pidgin client, it shows me this chat in IX, wich is fine. The problem is that I can't create a chat from IX.

When I try to add a contact debugger says this:

TypeError: Cannot read property 'group' of undefined
    at Object.showAddPopup (roster.js:164)
    at Scope.$scope.showAddContact (contacts.js:189)
    at Parser.functionCall (ionic.bundle.js:18471)
    at ionic.bundle.js:43026
    at Scope.$get.Scope.$eval (ionic.bundle.js:20326)
    at Scope.$get.Scope.$apply (ionic.bundle.js:20424)
    at HTMLAnchorElement.<anonymous> (ionic.bundle.js:43025)
    at ionic.bundle.js:10478
    at forEach (ionic.bundle.js:7950)
    at HTMLAnchorElement.eventHandler (ionic.bundle.js:10477)

Any idea? Great implementation by the way :)

@orangecoloured
Copy link
Owner

I'll look into it. If it's roster.js then something's wrong with getting the roster. =)

@alanjalife
Copy link

Hi - we are very interested in using this client, did you get the chance to look into these issues, can we help you somehow?

Thanks!

@orangecoloured
Copy link
Owner

@alanjalife Hi. Sorry, I didn't have time to get to fixing stuff yet.
I'm going to rework a bit everything soon, I hope in a month or so. Recently I saw Project Ace and I want to try it out. I believe native UI will really speed up performance for Android devices.

As for using the client, please do.
Not sure about the help part, because again, I don't know how much time I'll be able to spend on this. So reviewing and accepting pull requests can become an issue. But thank you. =)

@alanjalife
Copy link

thanks for your prompt answer!!! We cannot connect to a few XMPP servers we've been trying (the app stucks in the "Connecting" phase). Do you know of any public server which we could use where you tested this app and works?

Thanks in advance!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants