Closed m-maazi closed 2 years ago
The MyTelegramOrgWrapper only supports socks or HTTP proxies, you should choose manual mode, instead.
Thanks for quick response!
I tried the manual mode but refreshing the page gets me to welcome page! Is my code correct? Here is my log:
[21-Dec-2021 20:33:41 Asia/Tehran] Enabled PHP logging
[21-Dec-2021 20:33:41 Asia/Tehran] Enabled PHP logging
Logger: MadelineProto
Logger: Copyright (C) 2016-2020 Daniil Gentili
Logger: Licensed under AGPLv3
Logger: https://github.com/danog/MadelineProto
Serialization: Got exclusive session lock!
Exception: php_uname() has been disabled for security reasons in AppInfo.php:50
Exception: php_uname() has been disabled for security reasons in AppInfo.php:56
[21-Dec-2021 20:33:42 Asia/Tehran] Enabled PHP logging
TL: Loading TL schemes...
TL: Parsing TL_telegram_v135.tl...
TL: Parsing TL_mtproto_v1.tl...
TL: CRC32 mismatch (29c1636d, 73f1f8dc) for msg_container#73f1f8dc messages:vector<%Message> = MessageContainer;
TL: Parsing TL_secret.tl...
MTProto: Filling database cache. This can take few minutes.
MTProto: Cache filled.
TL: Loading TL schemes...
TL: Parsing TL_telegram_v135.tl...
TL: Parsing TL_mtproto_v1.tl...
TL: CRC32 mismatch (29c1636d, 73f1f8dc) for msg_container#73f1f8dc messages:vector<%Message> = MessageContainer;
TL: Parsing TL_secret.tl...
DataCenter: Connecting to DC 2 from scratch
DataCenterConnection: Trying shared connection via tcp://149.154.167.51:443 main DC 2, via ipv4 using AbridgedStream => ObfuscatedStream ({"address":"49.12.212.73","port":443,"secret":"EE0a879f7b21114fc08857967f32ba422b736e6170702e6972"}) => BufferedRawStream => DefaultStream (-1)
Connection: Connecting to DC 2.0
Session: Resetting session in DC 2.0...
MTProto: Prompting final serialization (SHUTDOWN)...
Connection: Connected to DC 2.0!
DataCenterConnection: Restoring 0 messages to DC 2
DataCenter: OK!
MTProto: Initing authorization...
MTProto: Initing authorization DC 2...
AuthKeyHandler: Generating permanent authorization key for DC 2...
AuthKeyHandler: Requesting pq...
ReadLoop: danog\MadelineProto\NothingInTheSocketException in phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/danog/madelineproto/src/danog/MadelineProto/Stream/Common/BufferedRawStream.php:178
Stack trace:
#0 [internal function]: danog\MadelineProto\Stream\Common\BufferedRawStream->bufferReadGenerator(1)
#1 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/danog/madelineproto/src/danog/MadelineProto/Coroutine.php(115): Generator->send(NULL)
#2 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Internal/Placeholder.php(128): danog\MadelineProto\Coroutine->danog\MadelineProto\{closure}(NULL, NULL)
#3 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Deferred.php(52): class@anonymous->resolve(NULL)
#4 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/byte-stream/lib/ResourceInputStream.php(76): Amp\Deferred->resolve(NULL)
#5 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Loop/NativeDriver.php(268): Amp\ByteStream\ResourceInputStream::Amp\ByteStream\{closure}('ad', Resource id #757, NULL)
#6 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Loop/NativeDriver.php(100): Amp\Loop\NativeDriver->selectStreams(Array, Array, 0.999)
#7 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Loop/Driver.php(117): Amp\Loop\NativeDriver->dispatch(true)
#8 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Loop/Driver.php(61): Amp\Loop\Driver->tick()
#9 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Loop.php(90): Amp\Loop\Driver->run()
#10 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/danog/madelineproto/src/danog/MadelineProto/Tools.php(293): Amp\Loop::run(Object(Closure))
#11 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/danog/madelineproto/src/danog/MadelineProto/MTProto.php(547): danog\MadelineProto\Tools::wait(Object(danog\MadelineProto\Coroutine))
#12 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/danog/madelineproto/src/danog/MadelineProto/Magic.php(439): danog\MadelineProto\MTProto::serializeAll()
#13 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/danog/madelineproto/src/danog/MadelineProto/Shutdown.php(55): danog\MadelineProto\Magic::shutdown(0)
#14 [internal function]: danog\MadelineProto\Shutdown::shutdown()
#15 {main}
ReadLoop: Got nothing in the socket in DC 2.0, reconnecting...
Connection: Reconnecting DC 2.0
Connection: Disconnecting from DC 2.0
Connection: Disconnected from DC 2.0
DataCenter: Reconnecting to DC 2 (0) from existing
DataCenterConnection: Trying shared connection via tcp://149.154.167.51:443 main DC 2, via ipv4 using AbridgedStream => ObfuscatedStream ({"address":"49.12.212.73","port":443,"secret":"EE0a879f7b21114fc08857967f32ba422b736e6170702e6972"}) => BufferedRawStream => DefaultStream (0)
Connection: Connecting to DC 2.0
Connection: Connected to DC 2.0!
Exception: Restart because we were reconnected in Connection.php:355
DataCenter: OK!
AuthKeyHandler: An exception occurred while generating the authorization key: Restart because we were reconnected in Connection on line 355. Retrying...
Connection: Reconnecting DC 2.0
Connection: Disconnecting from DC 2.0
Connection: Disconnected from DC 2.0
DataCenter: Reconnecting to DC 2 (0) from existing
DataCenterConnection: Trying shared connection via tcp://149.154.167.51:443 main DC 2, via ipv4 using AbridgedStream => ObfuscatedStream ({"address":"49.12.212.73","port":443,"secret":"EE0a879f7b21114fc08857967f32ba422b736e6170702e6972"}) => BufferedRawStream => DefaultStream (0)
Connection: Connecting to DC 2.0
Connection: Connected to DC 2.0!
DataCenter: OK!
AuthKeyHandler: Requesting pq...
ReadLoop: danog\MadelineProto\NothingInTheSocketException in phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/danog/madelineproto/src/danog/MadelineProto/Stream/Common/BufferedRawStream.php:178
Stack trace:
#0 [internal function]: danog\MadelineProto\Stream\Common\BufferedRawStream->bufferReadGenerator(1)
#1 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/danog/madelineproto/src/danog/MadelineProto/Coroutine.php(115): Generator->send(NULL)
#2 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Internal/Placeholder.php(128): danog\MadelineProto\Coroutine->danog\MadelineProto\{closure}(NULL, NULL)
#3 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Deferred.php(52): class@anonymous->resolve(NULL)
#4 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/byte-stream/lib/ResourceInputStream.php(76): Amp\Deferred->resolve(NULL)
#5 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Loop/NativeDriver.php(268): Amp\ByteStream\ResourceInputStream::Amp\ByteStream\{closure}('aw', Resource id #795, NULL)
#6 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Loop/NativeDriver.php(100): Amp\Loop\NativeDriver->selectStreams(Array, Array, 1)
#7 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Loop/Driver.php(117): Amp\Loop\NativeDriver->dispatch(true)
#8 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Loop/Driver.php(61): Amp\Loop\Driver->tick()
#9 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Loop.php(90): Amp\Loop\Driver->run()
#10 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/danog/madelineproto/src/danog/MadelineProto/Tools.php(293): Amp\Loop::run(Object(Closure))
#11 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/danog/madelineproto/src/danog/MadelineProto/MTProto.php(547): danog\MadelineProto\Tools::wait(Object(danog\MadelineProto\Coroutine))
#12 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/danog/madelineproto/src/danog/MadelineProto/Magic.php(439): danog\MadelineProto\MTProto::serializeAll()
#13 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/danog/madelineproto/src/danog/MadelineProto/Shutdown.php(55): danog\MadelineProto\Magic::shutdown(0)
#14 [internal function]: danog\MadelineProto\Shutdown::shutdown()
#15 {main}
ReadLoop: Got nothing in the socket in DC 2.0, reconnecting...
Connection: Reconnecting DC 2.0
Connection: Disconnecting from DC 2.0
Connection: Disconnected from DC 2.0
DataCenter: Reconnecting to DC 2 (0) from existing
DataCenterConnection: Trying shared connection via tcp://149.154.167.51:443 main DC 2, via ipv4 using AbridgedStream => ObfuscatedStream ({"address":"49.12.212.73","port":443,"secret":"EE0a879f7b21114fc08857967f32ba422b736e6170702e6972"}) => BufferedRawStream => DefaultStream (0)
Connection: Connecting to DC 2.0
Connection: Connected to DC 2.0!
Exception: Restart because we were reconnected in Connection.php:355
DataCenter: OK!
AuthKeyHandler: An exception occurred while generating the authorization key: Restart because we were reconnected in Connection on line 355. Retrying...
Connection: Reconnecting DC 2.0
Connection: Disconnecting from DC 2.0
Connection: Disconnected from DC 2.0
DataCenter: Reconnecting to DC 2 (0) from existing
DataCenterConnection: Trying shared connection via tcp://149.154.167.51:443 main DC 2, via ipv4 using AbridgedStream => ObfuscatedStream ({"address":"49.12.212.73","port":443,"secret":"EE0a879f7b21114fc08857967f32ba422b736e6170702e6972"}) => BufferedRawStream => DefaultStream (0)
Connection: Connecting to DC 2.0
Connection: Connected to DC 2.0!
DataCenter: OK!
AuthKeyHandler: Requesting pq...
ReadLoop: danog\MadelineProto\NothingInTheSocketException in phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/danog/madelineproto/src/danog/MadelineProto/Stream/Common/BufferedRawStream.php:178
Stack trace:
#0 [internal function]: danog\MadelineProto\Stream\Common\BufferedRawStream->bufferReadGenerator(1)
#1 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/danog/madelineproto/src/danog/MadelineProto/Coroutine.php(115): Generator->send(NULL)
#2 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Internal/Placeholder.php(128): danog\MadelineProto\Coroutine->danog\MadelineProto\{closure}(NULL, NULL)
#3 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Deferred.php(52): class@anonymous->resolve(NULL)
#4 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/byte-stream/lib/ResourceInputStream.php(76): Amp\Deferred->resolve(NULL)
#5 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Loop/NativeDriver.php(268): Amp\ByteStream\ResourceInputStream::Amp\ByteStream\{closure}('bs', Resource id #803, NULL)
#6 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Loop/NativeDriver.php(100): Amp\Loop\NativeDriver->selectStreams(Array, Array, 0.999)
#7 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Loop/Driver.php(117): Amp\Loop\NativeDriver->dispatch(true)
#8 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Loop/Driver.php(61): Amp\Loop\Driver->tick()
#9 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Loop.php(90): Amp\Loop\Driver->run()
#10 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/danog/madelineproto/src/danog/MadelineProto/Tools.php(293): Amp\Loop::run(Object(Closure))
#11 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/danog/madelineproto/src/danog/MadelineProto/MTProto.php(547): danog\MadelineProto\Tools::wait(Object(danog\MadelineProto\Coroutine))
#12 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/danog/madelineproto/src/danog/MadelineProto/Magic.php(439): danog\MadelineProto\MTProto::serializeAll()
#13 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/danog/madelineproto/src/danog/MadelineProto/Shutdown.php(55): danog\MadelineProto\Magic::shutdown(0)
#14 [internal function]: danog\MadelineProto\Shutdown::shutdown()
#15 {main}
ReadLoop: Got nothing in the socket in DC 2.0, reconnecting...
Connection: Reconnecting DC 2.0
Connection: Disconnecting from DC 2.0
Connection: Disconnected from DC 2.0
DataCenter: Reconnecting to DC 2 (0) from existing
DataCenterConnection: Trying shared connection via tcp://149.154.167.51:443 main DC 2, via ipv4 using AbridgedStream => ObfuscatedStream ({"address":"49.12.212.73","port":443,"secret":"EE0a879f7b21114fc08857967f32ba422b736e6170702e6972"}) => BufferedRawStream => DefaultStream (0)
Connection: Connecting to DC 2.0
Connection: Connected to DC 2.0!
Exception: Restart because we were reconnected in Connection.php:355
DataCenter: OK!
AuthKeyHandler: An exception occurred while generating the authorization key: Restart because we were reconnected in Connection on line 355. Retrying...
Connection: Reconnecting DC 2.0
Connection: Disconnecting from DC 2.0
Connection: Disconnected from DC 2.0
DataCenter: Reconnecting to DC 2 (0) from existing
DataCenterConnection: Trying shared connection via tcp://149.154.167.51:443 main DC 2, via ipv4 using AbridgedStream => ObfuscatedStream ({"address":"49.12.212.73","port":443,"secret":"EE0a879f7b21114fc08857967f32ba422b736e6170702e6972"}) => BufferedRawStream => DefaultStream (0)
Connection: Connecting to DC 2.0
Connection: Connected to DC 2.0!
DataCenter: OK!
AuthKeyHandler: Requesting pq...
ReadLoop: danog\MadelineProto\NothingInTheSocketException in phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/danog/madelineproto/src/danog/MadelineProto/Stream/Common/BufferedRawStream.php:178
Stack trace:
#0 [internal function]: danog\MadelineProto\Stream\Common\BufferedRawStream->bufferReadGenerator(1)
#1 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/danog/madelineproto/src/danog/MadelineProto/Coroutine.php(115): Generator->send(NULL)
#2 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Internal/Placeholder.php(128): danog\MadelineProto\Coroutine->danog\MadelineProto\{closure}(NULL, NULL)
#3 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Deferred.php(52): class@anonymous->resolve(NULL)
#4 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/byte-stream/lib/ResourceInputStream.php(76): Amp\Deferred->resolve(NULL)
#5 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Loop/NativeDriver.php(268): Amp\ByteStream\ResourceInputStream::Amp\ByteStream\{closure}('co', Resource id #811, NULL)
#6 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Loop/NativeDriver.php(100): Amp\Loop\NativeDriver->selectStreams(Array, Array, 1)
#7 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Loop/Driver.php(117): Amp\Loop\NativeDriver->dispatch(true)
#8 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Loop/Driver.php(61): Amp\Loop\Driver->tick()
#9 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Loop.php(90): Amp\Loop\Driver->run()
#10 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/danog/madelineproto/src/danog/MadelineProto/Tools.php(293): Amp\Loop::run(Object(Closure))
#11 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/danog/madelineproto/src/danog/MadelineProto/MTProto.php(547): danog\MadelineProto\Tools::wait(Object(danog\MadelineProto\Coroutine))
#12 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/danog/madelineproto/src/danog/MadelineProto/Magic.php(439): danog\MadelineProto\MTProto::serializeAll()
#13 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/danog/madelineproto/src/danog/MadelineProto/Shutdown.php(55): danog\MadelineProto\Magic::shutdown(0)
#14 [internal function]: danog\MadelineProto\Shutdown::shutdown()
#15 {main}
ReadLoop: Got nothing in the socket in DC 2.0, reconnecting...
Connection: Reconnecting DC 2.0
Connection: Disconnecting from DC 2.0
Connection: Disconnected from DC 2.0
DataCenter: Reconnecting to DC 2 (0) from existing
DataCenterConnection: Trying shared connection via tcp://149.154.167.51:443 main DC 2, via ipv4 using AbridgedStream => ObfuscatedStream ({"address":"49.12.212.73","port":443,"secret":"EE0a879f7b21114fc08857967f32ba422b736e6170702e6972"}) => BufferedRawStream => DefaultStream (0)
Connection: Connecting to DC 2.0
Connection: Connected to DC 2.0!
Exception: Restart because we were reconnected in Connection.php:355
DataCenter: OK!
AuthKeyHandler: An exception occurred while generating the authorization key: Restart because we were reconnected in Connection on line 355. Retrying...
Connection: Reconnecting DC 2.0
Connection: Disconnecting from DC 2.0
Connection: Disconnected from DC 2.0
DataCenter: Reconnecting to DC 2 (0) from existing
DataCenterConnection: Trying shared connection via tcp://149.154.167.51:443 main DC 2, via ipv4 using AbridgedStream => ObfuscatedStream ({"address":"49.12.212.73","port":443,"secret":"EE0a879f7b21114fc08857967f32ba422b736e6170702e6972"}) => BufferedRawStream => DefaultStream (0)
Connection: Connecting to DC 2.0
Connection: Connected to DC 2.0!
DataCenter: OK!
AuthKeyHandler: Requesting pq...
ReadLoop: danog\MadelineProto\NothingInTheSocketException in phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/danog/madelineproto/src/danog/MadelineProto/Stream/Common/BufferedRawStream.php:178
Stack trace:
#0 [internal function]: danog\MadelineProto\Stream\Common\BufferedRawStream->bufferReadGenerator(1)
#1 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/danog/madelineproto/src/danog/MadelineProto/Coroutine.php(115): Generator->send(NULL)
#2 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Internal/Placeholder.php(128): danog\MadelineProto\Coroutine->danog\MadelineProto\{closure}(NULL, NULL)
#3 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Deferred.php(52): class@anonymous->resolve(NULL)
#4 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/byte-stream/lib/ResourceInputStream.php(76): Amp\Deferred->resolve(NULL)
#5 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Loop/NativeDriver.php(268): Amp\ByteStream\ResourceInputStream::Amp\ByteStream\{closure}('dk', Resource id #819, NULL)
#6 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Loop/NativeDriver.php(100): Amp\Loop\NativeDriver->selectStreams(Array, Array, 1)
#7 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Loop/Driver.php(117): Amp\Loop\NativeDriver->dispatch(true)
#8 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Loop/Driver.php(61): Amp\Loop\Driver->tick()
#9 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Loop.php(90): Amp\Loop\Driver->run()
#10 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/danog/madelineproto/src/danog/MadelineProto/Tools.php(293): Amp\Loop::run(Object(Closure))
#11 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/danog/madelineproto/src/danog/MadelineProto/MTProto.php(547): danog\MadelineProto\Tools::wait(Object(danog\MadelineProto\Coroutine))
#12 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/danog/madelineproto/src/danog/MadelineProto/Magic.php(439): danog\MadelineProto\MTProto::serializeAll()
#13 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/danog/madelineproto/src/danog/MadelineProto/Shutdown.php(55): danog\MadelineProto\Magic::shutdown(0)
#14 [internal function]: danog\MadelineProto\Shutdown::shutdown()
#15 {main}
ReadLoop: Got nothing in the socket in DC 2.0, reconnecting...
Connection: Reconnecting DC 2.0
Connection: Disconnecting from DC 2.0
Connection: Disconnected from DC 2.0
DataCenter: Reconnecting to DC 2 (0) from existing
DataCenterConnection: Trying shared connection via tcp://149.154.167.51:443 main DC 2, via ipv4 using AbridgedStream => ObfuscatedStream ({"address":"49.12.212.73","port":443,"secret":"EE0a879f7b21114fc08857967f32ba422b736e6170702e6972"}) => BufferedRawStream => DefaultStream (0)
Connection: Connecting to DC 2.0
Connection: Connected to DC 2.0!
Exception: Restart because we were reconnected in Connection.php:355
DataCenter: OK!
AuthKeyHandler: An exception occurred while generating the authorization key: Restart because we were reconnected in Connection on line 355. Retrying...
Connection: Reconnecting DC 2.0
Connection: Disconnecting from DC 2.0
Connection: Disconnected from DC 2.0
DataCenter: Reconnecting to DC 2 (0) from existing
DataCenterConnection: Trying shared connection via tcp://149.154.167.51:443 main DC 2, via ipv4 using AbridgedStream => ObfuscatedStream ({"address":"49.12.212.73","port":443,"secret":"EE0a879f7b21114fc08857967f32ba422b736e6170702e6972"}) => BufferedRawStream => DefaultStream (0)
Connection: Connecting to DC 2.0
Connection: Connected to DC 2.0!
DataCenter: OK!
MTProto: Done initing authorization DC 2
Tools: Got the following exception within a forked strand, trying to rethrow
Tools: danog\MadelineProto\SecurityException: Auth Failed, please check the logfile for more information, make sure to install https://prime.madelineproto.xyz! in phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/danog/madelineproto/src/danog/MadelineProto/MTProtoTools/AuthKeyHandler.php:418
Stack trace:
#0 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/danog/madelineproto/src/danog/MadelineProto/MTProtoTools/AuthKeyHandler.php(609): danog\MadelineProto\MTProto->createAuthKey(-1, '2')
#1 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/danog/madelineproto/src/danog/MadelineProto/MTProtoTools/AuthKeyHandler.php(568): danog\MadelineProto\MTProto->initAuthorizationSocket('2', Object(danog\MadelineProto\DataCenterConnection))
#2 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/danog/madelineproto/src/danog/MadelineProto/MTProto.php(1510): danog\MadelineProto\MTProto->initAuthorization()
#3 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/danog/madelineproto/src/danog/MadelineProto/MTProto.php(621): danog\MadelineProto\MTProto->connectToAllDcs()
#4 [internal function]: danog\MadelineProto\MTProto->__construct_async(Object(danog\MadelineProto\Settings))
#5 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/danog/madelineproto/src/danog/MadelineProto/Coroutine.php(115): Generator->send(64)
#6 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Internal/Placeholder.php(128): danog\MadelineProto\Coroutine->danog\MadelineProto\{closure}(NULL, Object(Amp\Socket\ResourceSocket))
#7 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/danog/madelineproto/src/danog/MadelineProto/Coroutine.php(126): danog\MadelineProto\Coroutine->resolve(Object(Amp\Socket\ResourceSocket))
#8 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Internal/Placeholder.php(40): danog\MadelineProto\Coroutine->danog\MadelineProto\{closure}(NULL, 'ee')
#9 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Internal/PrivatePromise.php(26): class@anonymous->onResolve(Object(Closure))
#10 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Internal/Placeholder.php(123): Amp\Internal\PrivatePromise->onResolve(Object(Closure))
#11 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Deferred.php(52): class@anonymous->resolve(Object(Amp\Internal\PrivatePromise))
#12 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/functions.php(257): Amp\Deferred->resolve(Object(Amp\Internal\PrivatePromise))
#13 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Internal/Placeholder.php(128): Amp\Promise\{closure}(NULL, 'ee')
#14 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Deferred.php(52): class@anonymous->resolve('ee')
#15 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Loop/NativeDriver.php(302): Amp\Deferred->resolve('ee', Resource id #827, NULL)
#16 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Loop/NativeDriver.php(100): Amp\Loop\NativeDriver->selectStreams(Array, Array, 2)
#17 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Loop/Driver.php(117): Amp\Loop\NativeDriver->dispatch(true)
#18 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Loop/Driver.php(61): Amp\Loop\Driver->tick()
#19 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/phabel.transpiler74:amphp/amp/lib/Loop.php(90): Amp\Loop\Driver->run()
#20 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/danog/madelineproto/src/danog/MadelineProto/Tools.php(293): Amp\Loop::run(Object(Closure))
#21 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/danog/madelineproto/src/danog/MadelineProto/MTProto.php(547): danog\MadelineProto\Tools::wait(Object(danog\MadelineProto\Coroutine))
#22 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/danog/madelineproto/src/danog/MadelineProto/Magic.php(439): danog\MadelineProto\MTProto::serializeAll()
#23 phar:///home3/myatlas/atlas/private/test/madeline-c9791fd2915b33e660d3493e9d3a7c58a2499df7-74.phar/vendor/danog/madelineproto/src/danog/MadelineProto/Shutdown.php(55): danog\MadelineProto\Magic::shutdown(0)
#24 [internal function]: danog\MadelineProto\Shutdown::shutdown()
#25 {main}
Hi. Telegram is banned in my country and I am trying to run MadelineProto through a proxy on my host but it is not working. All my proxies are tested in mobile client app and are OK. Is there any issue in my code (I didn't really change anything)? Here is my code:
And my log:
Thanks!