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

PHP Fatal error: Uncaught exception 'RuntimeException' #13

Open
rheman opened this issue Jun 4, 2017 · 2 comments
Open

PHP Fatal error: Uncaught exception 'RuntimeException' #13

rheman opened this issue Jun 4, 2017 · 2 comments

Comments

@rheman
Copy link

rheman commented Jun 4, 2017

hello every I am using php-jabber-rpc with ejabberd ejabberd 16.01.
My source code looks as followed:

require 'vendor/autoload.php';

$rpc = new \GameNet\Jabber\RpcClient([
'server' => 'http://192.168.0.100:4560',
'host' => 'esfam.auf.org',
'username' => 'admin',
'password' => 'pessek&12',
'debug' => true,
]);
$rpc->createUser('Ivan', 'someStrongPassword');

But I have the following error:
PHP Fatal error: Uncaught exception 'RuntimeException' with message 'Error execution command 'register'' with parameters array (\n 0 => \n array (\n 'user' => 'admin',\n 'server' => 'http://192.168.0.100:4560',\n 'password' => 'pessek&12',\n ),\n 1 => \n array (\n 'host' => 'esfam.auf.org',\n 'user' => 'Ivan',\n 'password' => 'someStrongPassword',\n ),\n). Response: ' in /var/www/html/php-jabber-rpc/vendor/gamenet/php-jabber-rpc/lib/GameNet/Jabber/RpcClient.php:183\nStack trace:\n#0 /var/www/html/php-jabber-rpc/vendor/gamenet/php-jabber-rpc/lib/GameNet/Jabber/Mixins/UserTrait.php(64): GameNet\Jabber\RpcClient->sendRequest('register', Array)\n#1 /var/www/html/php-jabber-rpc/index.php(15): GameNet\Jabber\RpcClient->createUser('Ivan', 'someStrongPassw...')\n#2 {main}\n thrown in /var/www/html/php-jabber-rpc/vendor/gamenet/php-jabber-rpc/lib/GameNet/Jabber/RpcClient.php on line 183

When I check my ejabberd log I have the following entries:

[warning] <0.623.0>@ejabberd_xmlrpc:build_fault_response:386 Error -118
A problem '{error,invalid_account_data}' occurred executing the command register with arguments
[{host,<<"esfam.auf.org">>},
{user,<<"Ivan">>},
{password,<<"someStrongPassword">>}
]

Could someone help me ? I dont know what's wrong with my settings.

Thanks a lot.

@cuteeyesj
Copy link

Same issue

@utkarsh-mobi
Copy link

Same issue still persists

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

3 participants