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

Donno how to handle exception #232

Closed
dimitar-petrov opened this issue Nov 21, 2017 · 4 comments
Closed

Donno how to handle exception #232

dimitar-petrov opened this issue Nov 21, 2017 · 4 comments

Comments

@dimitar-petrov
Copy link

dimitar-petrov commented Nov 21, 2017

I got the following exception with latest master: 3aa60e8

PHP Fatal error:  Uncaught danog\MadelineProto\ResponseException: Dunno how to handle
array (
  '_' => 'config',
  'phonecalls_enabled' => true,
  'date' => 1511272282,
  'expires' => 1511275598,
  'test_mode' => false,
  'this_dc' => 4,
  'dc_options' =>
  array (
    0 =>
    array (
      '_' => 'dcOption',
      'ipv6' => false,
      'media_only' => false,
      'tcpo_only' => false,
      'cdn' => false,
      'static' => false,
      'id' => 1,
      'ip_address' => '149.154.175.50',
      'port' => 443,
    ),
    1 =>
    array (
      '_' => 'dcOption',
      'ipv6' => true,
      'media_only' => false,
      'tcpo_only' => false,
      'cdn' => false,
      'static' => false,
      'id' => 1,
      'ip_address' => '2001:0b28:f23d:f001:0000:0000:0000:000a',
      'port' => 443,
    ),
    2 =>
    array (
      '_' => 'dcOption',
      'ipv6' => false,
      'media_only' => false,
      'tcpo_only' => false,
      'cdn' => false,
      'static' => false,
      'id' => 2,
      'ip_address' => '149.154.167.51',
  in MadelineProto/src/danog/MadelineProto/MTProtoTools/ResponseHandler.php on line 276
@danog
Copy link
Owner

danog commented Nov 21, 2017

Is pthreads installed?

@dimitar-petrov
Copy link
Author

dimitar-petrov commented Nov 22, 2017

I don't think it is installed.
Could you please tell me how to check it, I am running MadelineProto on Archlinux.

Also is pthreads going to improve updates receiving speed from telegram?

Thanks,
Dimitar

@danog
Copy link
Owner

danog commented Nov 22, 2017

Pthreads may improve update receiving and handling speed, but unfortunately it is so buggy that it completely breaks MadelineProto and dependencies (see #4).
I asked you if it was installed because the error you got might be caused be pthreads, if it is installed.
You can check by running phpinfo();

If it is installed, I suggest you remove it.

@danog danog closed this as completed Nov 22, 2017
@dimitar-petrov
Copy link
Author

Alright, thanks for elaboration.

Looks like I do not have pthreads installed.

php -r 'phpinfo();' | grep -i thread  
Thread Safety => disabled

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