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

Possibly bug found (BOSH) not able to connect over bosh #77

Open
tenmoced opened this issue Oct 19, 2016 · 2 comments
Open

Possibly bug found (BOSH) not able to connect over bosh #77

tenmoced opened this issue Oct 19, 2016 · 2 comments

Comments

@tenmoced
Copy link

When using bosh, jaxl gave me the following error:

PHP Catchable fatal error: Argument 1 passed to JAXL::require_xep() must be of the type array, string given, called in ....../jaxl.php on line 228 and defined in .../jaxl.php on line 282

I've edit jaxl.php line 282
replaced: public function require_xep(array $xeps)
with: public function require_xep($xeps)

because:
if (!is_array($xeps)) {
$xeps = array($xeps);
}
if (!is_array($xeps)) {
$xeps = array($xeps);
}

... hope, this may help others.

@tenmoced tenmoced changed the title Possibly bug found Possibly bug found (BOSH) Oct 19, 2016
@tenmoced
Copy link
Author

tenmoced commented Oct 20, 2016

After two days, still not able to connetct over BOSH to my Prosody for pre-binding.
Jaxl hangs on Connect ...
Connect for simply sending messages is working well.

error-log says:
got invalid return value from state handler 'wait_for_stream_features', sending end stream...
[19-Oct-2016 15:32:21 Europe/Berlin] [mxmpp_stream:137 - 2016-10-19 15:32:21 - state handler 'logged_out' returned N;, kindly report this to developers

Candy/Strophe over BOSH and moreover Xabber and PSI connecting flawless.

Now giving up.

@tenmoced tenmoced changed the title Possibly bug found (BOSH) Possibly bug found (BOSH) not able to connect over bosh Oct 20, 2016
@lrirwin
Copy link

lrirwin commented Apr 5, 2019

From: https://community.cisco.com/t5/collaboration-blogs/php-and-cisco-im-p-jabber/ba-p/3662284
Edit jaxl.php and change this:
$this->require_xep('0206');
To this:
$this->require_xep(array('0206'));
Reason: The require_xep method takes an array as an argument. There are other possible fixes, but this is the simplest. This should fix any problems you might have connecting using HTTP/BOSH.

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

2 participants