danog / MadelineProto

Async PHP client API for the telegram MTProto protocol
https://docs.madelineproto.xyz
GNU Affero General Public License v3.0
2.87k stars 661 forks source link

Peer not found in internal min peer database #830

Closed auroraruanjian closed 2 years ago

auroraruanjian commented 4 years ago

PHP Fatal error: Uncaught danog\MadelineProto\Exception: Peer not found in internal min peer database in /projectvendor/danog/madelineproto/src/danog/MadelineProto/MTProtoTools/MinDatabase.php:245 Stack trace:

0 [internal function]: danog\MadelineProto\MTProtoTools\MinDatabase->populateFrom(Array)

1 /projectvendor/danog/madelineproto/src/danog/MadelineProto/Coroutine.php(143): Generator->send(Array)

2 /projectvendor/amphp/amp/lib/Internal/Placeholder.php(46): danog\MadelineProto\Coroutine->danog\MadelineProto{closure}(NULL, Array)

3 /projectvendor/danog/madelineproto/src/danog/MadelineProto/Coroutine.php(182): danog\MadelineProto\Coroutine->onResolve(Object(Closure))

4 /projectvendor/danog/madelineproto/src/danog/MadelineProto/Coroutine.php(165): danog\MadelineProto\Coroutine->__construct(Object(Generator))

5 /projectv in /projectvendor/danog/madelineproto/src/danog/MadelineProto/Tools.php on line 219

danog commented 2 years ago

This should be fixed in the latest version of MadelineProto 7, if it still happens please open a new issue.