Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Strophe gets invalid SID

I'm building a web based client with strophe and jquery and I'm using openfire as server. Almost everything its working, I can get the roster list, send and receive messages, but when I'm trying to change my presence from avaliable to xa or dnd or any other else the server stops answering and I start to get 404 errors on my POSTs and invalid SID messages like this: "NetworkError: 404 Invalid SID. - http://myurl.com/".

I've been through other topics around and it seems to be a problem with my avaliable credentials, but I don't have any clear evidence of what's wrong.

thanks in advance for any help.

like image 959
Biguá Avatar asked Feb 15 '13 16:02

Biguá


1 Answers

I'm also using Strophe and for me everything works just fine! I don't know what could be you problem, since you didn't share your code with us, so my answer probably won't help you, but here's what I do to update my presence:

connection.send($pres().c('status').t('dnd or any status you want'));
like image 64
Hampel Előd Avatar answered Oct 11 '22 22:10

Hampel Előd