danog / MadelineProto

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

Error - Got bad message notification in ResponseHandler.php:95 #482

Closed Aplear closed 6 years ago

Aplear commented 6 years ago

Please help to resolve this,

how to fix this? On local machine works good but on host is error - can not get json response Just print this

Logger, serhii_zakharchuk: MadelineProto Logger, serhii_zakharchuk: Copyright (C) 2016-2018 Daniil Gentili Logger, serhii_zakharchuk: Licensed under AGPLv3 Logger, serhii_zakharchuk: https://github.com/danog/MadelineProto MTProto, serhii_zakharchuk: Serialization is out of date, reconstructing object! TL, serhii_zakharchuk: Loading TL schemes... TL, serhii_zakharchuk: Parsing TL_mtproto_v1.json... TL, serhii_zakharchuk: Parsing TL_telegram_v82.tl... TL, serhii_zakharchuk: CRC32 mismatch (402d9b47, 37982646) for ipPortSecret#37982646 ipv4:int port:int secret:bytes = IpPort; TL, serhii_zakharchuk: CRC32 mismatch (020634ce, 4679b65f) for accessPointRule#4679b65f phone_prefix_rules:string dc_id:int ips:vector

= AccessPointRule; TL, serhii_zakharchuk: CRC32 mismatch (066d2808, 5a592a6c) for help.configSimple#5a592a6c date:int expires:int rules:vector = help.ConfigSimple; TL, serhii_zakharchuk: CRC32 mismatch (450b7115, c88974ac) for channel#c88974ac flags:# creator:flags.0?true left:flags.2?true editor:flags.3?true broadcast:flags.5?true verified:flags.7?true megagroup:flags.8?true restricted:flags.9?true democracy:flags.10?true signatures:flags.11?true min:flags.12?true id:int access_hash:flags.13?long title:string username:flags.6?string photo:ChatPhoto date:int version:int restriction_reason:flags.9?string admin_rights:flags.14?ChannelAdminRights banned_rights:flags.15?ChannelBannedRights participants_count:flags.17?int = Chat; TL, serhii_zakharchuk: Parsing TL_secret.tl... TL, serhii_zakharchuk: Parsing TL_calls.tl... TL, serhii_zakharchuk: CRC32 mismatch (e8201c08, dbf948c1) for decryptedDataBlock#dbf948c1 random_id:long random_bytes:string flags:# voice_call_id:flags.2?int128 in_seq_no:flags.4?int out_seq_no:flags.4?int recent_received_mask:flags.5?int proto:flags.3?int extra:flags.1?string raw_data:flags.0?string = DecryptedDataBlock; TL, serhii_zakharchuk: CRC32 mismatch (d20a6f5c, cc0d0e76) for simpleDataBlock#cc0d0e76 random_id:long random_bytes:string raw_data:string = DecryptedDataBlock; TL, serhii_zakharchuk: Parsing TL_botAPI.tl... DataCenter, serhii_zakharchuk: Disconnecting from DC 2... DataCenter, serhii_zakharchuk: Disconnecting from DC 1... DataCenter, serhii_zakharchuk: Disconnecting from DC 3... DataCenter, serhii_zakharchuk: Disconnecting from DC 4... DataCenter, serhii_zakharchuk: Disconnecting from DC 4_media... DataCenter, serhii_zakharchuk: Disconnecting from DC 5... DataCenter, serhii_zakharchuk: Connecting to DC 2 (main server, ipv4, tcp_abridged)... DataCenter, serhii_zakharchuk: Trying connection on port 443 of 149.154.167.51... DataCenter, serhii_zakharchuk: OK! DataCenter, serhii_zakharchuk: Connecting to DC 1 (main server, ipv4, tcp_abridged)... DataCenter, serhii_zakharchuk: Trying connection on port 443 of 149.154.175.50... DataCenter, serhii_zakharchuk: OK! DataCenter, serhii_zakharchuk: Connecting to DC 3 (main server, ipv4, tcp_abridged)... DataCenter, serhii_zakharchuk: Trying connection on port 443 of 149.154.175.100... DataCenter, serhii_zakharchuk: OK! DataCenter, serhii_zakharchuk: Connecting to DC 4 (main server, ipv4, tcp_abridged)... DataCenter, serhii_zakharchuk: Trying connection on port 443 of 149.154.167.91... DataCenter, serhii_zakharchuk: OK! DataCenter, serhii_zakharchuk: Connecting to DC 4_media (main server, ipv4, tcp_abridged)... DataCenter, serhii_zakharchuk: Trying connection on port 443 of 149.154.164.250... DataCenter, serhii_zakharchuk: OK! DataCenter, serhii_zakharchuk: Connecting to DC 5 (main server, ipv4, tcp_abridged)... DataCenter, serhii_zakharchuk: Trying connection on port 443 of 91.108.56.125... DataCenter, serhii_zakharchuk: OK! CallHandler, serhii_zakharchuk: Writing client info (also executing help.getConfig)... Exception, serhii_zakharchuk: Got bad message notification in ResponseHandler.php:95 MsgIdHandler, serhii_zakharchuk: WARNING: Given message id (6591759579035853825) is bigger than or equal to the current limit (6591759579035842561). Consider syncing your date. MTProto, serhii_zakharchuk: Got new DC options, reconnecting DataCenter, serhii_zakharchuk: Disconnecting from DC 2... DataCenter, serhii_zakharchuk: Disconnecting from DC 1... DataCenter, serhii_zakharchuk: Disconnecting from DC 3... DataCenter, serhii_zakharchuk: Disconnecting from DC 4... DataCenter, serhii_zakharchuk: Disconnecting from DC 4_media... DataCenter, serhii_zakharchuk: Disconnecting from DC 5... DataCenter, serhii_zakharchuk: Connecting to DC 2 (main server, ipv4, tcp_abridged)... DataCenter, serhii_zakharchuk: Trying connection on port 443 of 149.154.167.51... DataCenter, serhii_zakharchuk: OK! DataCenter, serhii_zakharchuk: Connecting to DC 1 (main server, ipv4, tcp_abridged)... DataCenter, serhii_zakharchuk: Trying connection on port 443 of 149.154.175.50... DataCenter, serhii_zakharchuk: OK! DataCenter, serhii_zakharchuk: Connecting to DC 3 (main server, ipv4, tcp_abridged)... DataCenter, serhii_zakharchuk: Trying connection on port 443 of 149.154.175.100... DataCenter, serhii_zakharchuk: OK! DataCenter, serhii_zakharchuk: Connecting to DC 4 (main server, ipv4, tcp_abridged)... DataCenter, serhii_zakharchuk: Trying connection on port 443 of 149.154.167.91... DataCenter, serhii_zakharchuk: OK! DataCenter, serhii_zakharchuk: Connecting to DC 4_media (main server, ipv4, tcp_abridged)... DataCenter, serhii_zakharchuk: Trying connection on port 443 of 149.154.166.120... DataCenter, serhii_zakharchuk: OK! DataCenter, serhii_zakharchuk: Connecting to DC 5 (main server, ipv4, tcp_abridged)... DataCenter, serhii_zakharchuk: Trying connection on port 443 of 91.108.56.163... DataCenter, serhii_zakharchuk: OK! CallHandler, serhii_zakharchuk: Writing client info (also executing help.getConfig)... Exception, serhii_zakharchuk: Got bad message notification in ResponseHandler.php:95 MsgIdHandler, serhii_zakharchuk: WARNING: Given message id (6591759583018440705) is bigger than or equal to the current limit (6591759583018413057). Consider syncing your date. CallHandler, serhii_zakharchuk: Writing client info (also executing help.getConfig)... Exception, serhii_zakharchuk: Got bad message notification in ResponseHandler.php:95 MsgIdHandler, serhii_zakharchuk: WARNING: Given message id (6591759585106246657) is bigger than or equal to the current limit (6591759585106160641). Consider syncing your date. CallHandler, serhii_zakharchuk: Writing client info (also executing help.getConfig)... Exception, serhii_zakharchuk: Got bad message notification in ResponseHandler.php:95 MsgIdHandler, serhii_zakharchuk: WARNING: Given message id (6591759585573108737) is bigger than or equal to the current limit (6591759585573058561). Consider syncing your date. CallHandler, serhii_zakharchuk: Writing client info (also executing help.getConfig)... Exception, serhii_zakharchuk: Got bad message notification in ResponseHandler.php:95 MsgIdHandler, serhii_zakharchuk: WARNING: Given message id (6591759585806380033) is bigger than or equal to the current limit (6591759585806341121). Consider syncing your date. CallHandler, serhii_zakharchuk: Writing client info (also executing help.getConfig)... Exception, serhii_zakharchuk: Got bad message notification in ResponseHandler.php:95 MsgIdHandler, serhii_zakharchuk: WARNING: Given message id (6591759588689658881) is bigger than or equal to the current limit (6591759588689602561). Consider syncing your date. MTProto, serhii_zakharchuk: Updated config! MTProto, serhii_zakharchuk: { "_": "config", "phonecalls_enabled": true, "default_p2p_contacts": false, "preload_featured_stickers": false, "ignore_phone_entities": false, "revoke_pm_inbox": false, "blocked_mode": false, "date": 1534763625, "expires": 1534767279, "test_mode": false, "this_dc": 2, "dc_txt_domain_name": "apv2.stel.com", "chat_size_max": 200, "megagroup_size_max": 100000, "forwarded_count_max": 100, "online_update_period_ms": 120000, "offline_blur_timeout_ms": 5000, "offline_idle_timeout_ms": 30000, "online_cloud_timeout_ms": 300000, "notify_cloud_delay_ms": 30000, "notify_default_delay_ms": 1500, "push_chat_period_ms": 60000, "push_chat_limit": 2, "saved_gifs_limit": 200, "edit_time_limit": 172800, "revoke_time_limit": 172800, "revoke_pm_time_limit": 172800, "rating_e_decay": 2419200, "stickers_recent_limit": 200, "stickers_faved_limit": 5, "channels_read_media_period": 604800, "pinned_dialogs_count_max": 5, "call_receive_timeout_ms": 20000, "call_ring_timeout_ms": 90000, "call_connect_timeout_ms": 30000, "call_packet_timeout_ms": 10000, "me_url_prefix": "https://t.me/", "gif_search_username": "gif", "venue_search_username": "foursquare", "img_search_username": "bing", "caption_length_max": 200, "message_length_max": 4096, "webfile_dc_id": 4 } MTProto, serhii_zakharchuk: We're in NL, nearest DC is 4. DataCenter, serhii_zakharchuk: Disconnecting from DC 2... DataCenter, serhii_zakharchuk: Disconnecting from DC 1... DataCenter, serhii_zakharchuk: Disconnecting from DC 3... DataCenter, serhii_zakharchuk: Disconnecting from DC 4... DataCenter, serhii_zakharchuk: Disconnecting from DC 4_media... DataCenter, serhii_zakharchuk: Disconnecting from DC 5... DataCenter, serhii_zakharchuk: Connecting to DC 2 (main server, ipv4, tcp_abridged)... DataCenter, serhii_zakharchuk: Trying connection on port 443 of 149.154.167.51... DataCenter, serhii_zakharchuk: OK! DataCenter, serhii_zakharchuk: Connecting to DC 1 (main server, ipv4, tcp_abridged)... DataCenter, serhii_zakharchuk: Trying connection on port 443 of 149.154.175.50... DataCenter, serhii_zakharchuk: OK! DataCenter, serhii_zakharchuk: Connecting to DC 3 (main server, ipv4, tcp_abridged)... DataCenter, serhii_zakharchuk: Trying connection on port 443 of 149.154.175.100... DataCenter, serhii_zakharchuk: OK! DataCenter, serhii_zakharchuk: Connecting to DC 4 (main server, ipv4, tcp_abridged)... DataCenter, serhii_zakharchuk: Trying connection on port 443 of 149.154.167.91... DataCenter, serhii_zakharchuk: OK! DataCenter, serhii_zakharchuk: Connecting to DC 4_media (main server, ipv4, tcp_abridged)... DataCenter, serhii_zakharchuk: Trying connection on port 443 of 149.154.166.120... DataCenter, serhii_zakharchuk: OK! DataCenter, serhii_zakharchuk: Connecting to DC 5 (main server, ipv4, tcp_abridged)... DataCenter, serhii_zakharchuk: Trying connection on port 443 of 91.108.56.163... DataCenter, serhii_zakharchuk: OK! Exception, serhii_zakharchuk: Received request to switch to DC 2 in ResponseHandler.php:340 CallHandler, serhii_zakharchuk: Received request to switch to DC 2 API, serhii_zakharchuk: Serializing MadelineProto... APIFactory, serhii_zakharchuk: Didn't serialize in a while, doing that now... API, serhii_zakharchuk: Serializing MadelineProto... Serialization, serhii_zakharchuk: Waiting for exclusive lock of serialization lockfile... Serialization, serhii_zakharchuk: Lock acquired, serializing TOS, serhii_zakharchuk: Fetching TOS... yii\web\HeadersAlreadySentException: Headers already sent in phar:……vendor/danog/madelineproto/src/danog/MadelineProto/Logger.php on line 118. in vendor/yiisoft/yii2/web/Response.php:366 Stack trace: #0 /vendor/yiisoft/yii2/web/Response.php(339): yii\web\Response->sendHeaders() #1 /vendor/yiisoft/yii2/base/Application.php(392): yii\web\Response->send() #2 /api/web/index.php(18): yii\base\Application->run() #3 {main} API, serhii_zakharchuk: Serializing MadelineProto... Serialization, serhii_zakharchuk: Waiting for exclusive lock of serialization lockfile... Serialization, serhii_zakharchuk: Lock acquired, serializing
danog commented 6 years ago

Sync your date.

danog commented 6 years ago

Make sure it's precise to the millisecond

Aplear commented 6 years ago

I use this lib for web/api to get message.history on local machine it's okey and when try on server have no result, only this list - up

Aplear commented 6 years ago

synchronised to NTP server (213...*) at stratum 2 time correct to within 20 ms polling server every 1024 s

untill no results

danog commented 6 years ago

Send me the new logs after syncing the time

Aplear commented 6 years ago

Logger, serhii_zakharchuk: MadelineProto Logger, serhii_zakharchuk: Copyright (C) 2016-2018 Daniil Gentili Logger, serhii_zakharchuk: Licensed under AGPLv3 Logger, serhii_zakharchuk: https://github.com/danog/MadelineProto MTProto, serhii_zakharchuk: Serialization is out of date, reconstructing object! TL, serhii_zakharchuk: Loading TL schemes... TL, serhii_zakharchuk: Parsing TL_mtproto_v1.json... TL, serhii_zakharchuk: Parsing TL_telegram_v82.tl... TL, serhii_zakharchuk: CRC32 mismatch (402d9b47, 37982646) for ipPortSecret#37982646 ipv4:int port:int secret:bytes = IpPort; TL, serhii_zakharchuk: CRC32 mismatch (020634ce, 4679b65f) for accessPointRule#4679b65f phone_prefix_rules:string dc_id:int ips:vector

= AccessPointRule; TL, serhii_zakharchuk: CRC32 mismatch (066d2808, 5a592a6c) for help.configSimple#5a592a6c date:int expires:int rules:vector = help.ConfigSimple; TL, serhii_zakharchuk: CRC32 mismatch (450b7115, c88974ac) for channel#c88974ac flags:# creator:flags.0?true left:flags.2?true editor:flags.3?true broadcast:flags.5?true verified:flags.7?true megagroup:flags.8?true restricted:flags.9?true democracy:flags.10?true signatures:flags.11?true min:flags.12?true id:int access_hash:flags.13?long title:string username:flags.6?string photo:ChatPhoto date:int version:int restriction_reason:flags.9?string admin_rights:flags.14?ChannelAdminRights banned_rights:flags.15?ChannelBannedRights participants_count:flags.17?int = Chat; TL, serhii_zakharchuk: Parsing TL_secret.tl... TL, serhii_zakharchuk: Parsing TL_calls.tl... TL, serhii_zakharchuk: CRC32 mismatch (e8201c08, dbf948c1) for decryptedDataBlock#dbf948c1 random_id:long random_bytes:string flags:# voice_call_id:flags.2?int128 in_seq_no:flags.4?int out_seq_no:flags.4?int recent_received_mask:flags.5?int proto:flags.3?int extra:flags.1?string raw_data:flags.0?string = DecryptedDataBlock; TL, serhii_zakharchuk: CRC32 mismatch (d20a6f5c, cc0d0e76) for simpleDataBlock#cc0d0e76 random_id:long random_bytes:string raw_data:string = DecryptedDataBlock; TL, serhii_zakharchuk: Parsing TL_botAPI.tl... DataCenter, serhii_zakharchuk: Disconnecting from DC 2... DataCenter, serhii_zakharchuk: Disconnecting from DC 1... DataCenter, serhii_zakharchuk: Disconnecting from DC 3... DataCenter, serhii_zakharchuk: Disconnecting from DC 4... DataCenter, serhii_zakharchuk: Disconnecting from DC 4_media... DataCenter, serhii_zakharchuk: Disconnecting from DC 5... DataCenter, serhii_zakharchuk: Connecting to DC 2 (main server, ipv4, tcp_abridged)... DataCenter, serhii_zakharchuk: Trying connection on port 443 of 149.154.167.51... DataCenter, serhii_zakharchuk: OK! DataCenter, serhii_zakharchuk: Connecting to DC 1 (main server, ipv4, tcp_abridged)... DataCenter, serhii_zakharchuk: Trying connection on port 443 of 149.154.175.50... DataCenter, serhii_zakharchuk: OK! DataCenter, serhii_zakharchuk: Connecting to DC 3 (main server, ipv4, tcp_abridged)... DataCenter, serhii_zakharchuk: Trying connection on port 443 of 149.154.175.100... DataCenter, serhii_zakharchuk: OK! DataCenter, serhii_zakharchuk: Connecting to DC 4 (main server, ipv4, tcp_abridged)... DataCenter, serhii_zakharchuk: Trying connection on port 443 of 149.154.167.91... DataCenter, serhii_zakharchuk: OK! DataCenter, serhii_zakharchuk: Connecting to DC 4_media (main server, ipv4, tcp_abridged)... DataCenter, serhii_zakharchuk: Trying connection on port 443 of 149.154.164.250... DataCenter, serhii_zakharchuk: OK! DataCenter, serhii_zakharchuk: Connecting to DC 5 (main server, ipv4, tcp_abridged)... DataCenter, serhii_zakharchuk: Trying connection on port 443 of 91.108.56.125... DataCenter, serhii_zakharchuk: OK! AuthKeyHandler, serhii_zakharchuk: Generating temporary authorization key for DC 2... AuthKeyHandler, serhii_zakharchuk: Requesting pq... ResponseHandler, serhii_zakharchuk: Trying to assign a response of type ResPQ to its request... ResponseHandler, serhii_zakharchuk: Does the request of return type ResPQ match? ResponseHandler, serhii_zakharchuk: Yes AuthKeyHandler, serhii_zakharchuk: Factorization 2335276079226857071 = 1464176719 * 1594941409 RSA, serhii_zakharchuk: Encrypting with rsa key... AuthKeyHandler, serhii_zakharchuk: Starting Diffie Hellman key exchange ResponseHandler, serhii_zakharchuk: Trying to assign a response of type Server_DH_Params to its request... ResponseHandler, serhii_zakharchuk: Does the request of return type Server_DH_Params match? ResponseHandler, serhii_zakharchuk: Yes AuthKeyHandler, serhii_zakharchuk: Server-client time delta = -1.0 s AuthKeyHandler, serhii_zakharchuk: Executing p/g checks (1/2)... AuthKeyHandler, serhii_zakharchuk: Executing p/g checks (2/2)... AuthKeyHandler, serhii_zakharchuk: Executing g check... AuthKeyHandler, serhii_zakharchuk: Executing g_a check (1/2)... AuthKeyHandler, serhii_zakharchuk: Executing g_a check (2/2)... AuthKeyHandler, serhii_zakharchuk: Generating b... AuthKeyHandler, serhii_zakharchuk: Generating g_b... AuthKeyHandler, serhii_zakharchuk: Executing g_a check (1/2)... AuthKeyHandler, serhii_zakharchuk: Executing g_a check (2/2)... AuthKeyHandler, serhii_zakharchuk: Executing g_b check... AuthKeyHandler, serhii_zakharchuk: Preparing client_DH_inner_data... AuthKeyHandler, serhii_zakharchuk: Executing set_client_DH_params... ResponseHandler, serhii_zakharchuk: Trying to assign a response of type Set_client_DH_params_answer to its request... ResponseHandler, serhii_zakharchuk: Does the request of return type Set_client_DH_params_answer match? ResponseHandler, serhii_zakharchuk: Yes AuthKeyHandler, serhii_zakharchuk: Generating authorization key... AuthKeyHandler, serhii_zakharchuk: Diffie Hellman key exchange processed successfully! AuthKeyHandler, serhii_zakharchuk: Auth key generated AuthKeyHandler, serhii_zakharchuk: Binding authorization keys... CallHandler, serhii_zakharchuk: Writing client info (also executing auth.bindTempAuthKey)... MsgIdHandler, serhii_zakharchuk: WARNING: Given message id (6594476993873241089) is bigger than or equal to the current limit (6594476993873200129). Consider syncing your date. AuthKeyHandler, serhii_zakharchuk: Successfully binded temporary and permanent authorization keys, DC 2 CallHandler, serhii_zakharchuk: Writing client info (also executing help.getConfig)... MTProto, serhii_zakharchuk: Got new DC options, reconnecting DataCenter, serhii_zakharchuk: Disconnecting from DC 2... DataCenter, serhii_zakharchuk: Disconnecting from DC 1... DataCenter, serhii_zakharchuk: Disconnecting from DC 3... DataCenter, serhii_zakharchuk: Disconnecting from DC 4... DataCenter, serhii_zakharchuk: Disconnecting from DC 4_media... DataCenter, serhii_zakharchuk: Disconnecting from DC 5... DataCenter, serhii_zakharchuk: Connecting to DC 2 (main server, ipv4, tcp_abridged)... DataCenter, serhii_zakharchuk: Trying connection on port 443 of 149.154.167.51... DataCenter, serhii_zakharchuk: OK! DataCenter, serhii_zakharchuk: Connecting to DC 1 (main server, ipv4, tcp_abridged)... DataCenter, serhii_zakharchuk: Trying connection on port 443 of 149.154.175.50... DataCenter, serhii_zakharchuk: OK! DataCenter, serhii_zakharchuk: Connecting to DC 3 (main server, ipv4, tcp_abridged)... DataCenter, serhii_zakharchuk: Trying connection on port 443 of 149.154.175.100... DataCenter, serhii_zakharchuk: OK! DataCenter, serhii_zakharchuk: Connecting to DC 4 (main server, ipv4, tcp_abridged)... DataCenter, serhii_zakharchuk: Trying connection on port 443 of 149.154.167.91... DataCenter, serhii_zakharchuk: OK! DataCenter, serhii_zakharchuk: Connecting to DC 4_media (main server, ipv4, tcp_abridged)... DataCenter, serhii_zakharchuk: Trying connection on port 443 of 149.154.166.120... DataCenter, serhii_zakharchuk: OK! DataCenter, serhii_zakharchuk: Connecting to DC 5 (main server, ipv4, tcp_abridged)... DataCenter, serhii_zakharchuk: Trying connection on port 443 of 91.108.56.163... DataCenter, serhii_zakharchuk: OK! AuthKeyHandler, serhii_zakharchuk: Generating temporary authorization key for DC 1... AuthKeyHandler, serhii_zakharchuk: Requesting pq... ResponseHandler, serhii_zakharchuk: Trying to assign a response of type ResPQ to its request... ResponseHandler, serhii_zakharchuk: Does the request of return type ResPQ match? ResponseHandler, serhii_zakharchuk: Yes AuthKeyHandler, serhii_zakharchuk: Factorization 1770834857587298339 = 1034958499 * 1711020161 RSA, serhii_zakharchuk: Encrypting with rsa key... AuthKeyHandler, serhii_zakharchuk: Starting Diffie Hellman key exchange ResponseHandler, serhii_zakharchuk: Trying to assign a response of type Server_DH_Params to its request... ResponseHandler, serhii_zakharchuk: Does the request of return type Server_DH_Params match? ResponseHandler, serhii_zakharchuk: Yes AuthKeyHandler, serhii_zakharchuk: Server-client time delta = 0.0 s AuthKeyHandler, serhii_zakharchuk: Executing p/g checks (1/2)... AuthKeyHandler, serhii_zakharchuk: Executing p/g checks (2/2)... AuthKeyHandler, serhii_zakharchuk: Executing g check... AuthKeyHandler, serhii_zakharchuk: Executing g_a check (1/2)... AuthKeyHandler, serhii_zakharchuk: Executing g_a check (2/2)... AuthKeyHandler, serhii_zakharchuk: Generating b... AuthKeyHandler, serhii_zakharchuk: Generating g_b... AuthKeyHandler, serhii_zakharchuk: Executing g_a check (1/2)... AuthKeyHandler, serhii_zakharchuk: Executing g_a check (2/2)... AuthKeyHandler, serhii_zakharchuk: Executing g_b check... AuthKeyHandler, serhii_zakharchuk: Preparing client_DH_inner_data... AuthKeyHandler, serhii_zakharchuk: Executing set_client_DH_params... ResponseHandler, serhii_zakharchuk: Trying to assign a response of type Set_client_DH_params_answer to its request... ResponseHandler, serhii_zakharchuk: Does the request of return type Set_client_DH_params_answer match? ResponseHandler, serhii_zakharchuk: Yes AuthKeyHandler, serhii_zakharchuk: Generating authorization key... AuthKeyHandler, serhii_zakharchuk: Diffie Hellman key exchange processed successfully! AuthKeyHandler, serhii_zakharchuk: Auth key generated AuthKeyHandler, serhii_zakharchuk: Binding authorization keys... CallHandler, serhii_zakharchuk: Writing client info (also executing auth.bindTempAuthKey)... MsgIdHandler, serhii_zakharchuk: WARNING: Given message id (6594476999187061761) is bigger than or equal to the current limit (6594476999187031041). Consider syncing your date. AuthKeyHandler, serhii_zakharchuk: Successfully binded temporary and permanent authorization keys, DC 1 CallHandler, serhii_zakharchuk: Writing client info (also executing help.getConfig)... AuthKeyHandler, serhii_zakharchuk: Generating temporary authorization key for DC 3... AuthKeyHandler, serhii_zakharchuk: Requesting pq... ResponseHandler, serhii_zakharchuk: Trying to assign a response of type ResPQ to its request... ResponseHandler, serhii_zakharchuk: Does the request of return type ResPQ match? ResponseHandler, serhii_zakharchuk: Yes AuthKeyHandler, serhii_zakharchuk: Factorization 2849107357221658067 = 1467343643 * 1941676969 RSA, serhii_zakharchuk: Encrypting with rsa key... AuthKeyHandler, serhii_zakharchuk: Starting Diffie Hellman key exchange ResponseHandler, serhii_zakharchuk: Trying to assign a response of type Server_DH_Params to its request... ResponseHandler, serhii_zakharchuk: Does the request of return type Server_DH_Params match? ResponseHandler, serhii_zakharchuk: Yes AuthKeyHandler, serhii_zakharchuk: Server-client time delta = 0.0 s AuthKeyHandler, serhii_zakharchuk: Executing p/g checks (1/2)... AuthKeyHandler, serhii_zakharchuk: Executing p/g checks (2/2)... AuthKeyHandler, serhii_zakharchuk: Executing g check... AuthKeyHandler, serhii_zakharchuk: Executing g_a check (1/2)... AuthKeyHandler, serhii_zakharchuk: Executing g_a check (2/2)... AuthKeyHandler, serhii_zakharchuk: Generating b... AuthKeyHandler, serhii_zakharchuk: Generating g_b... AuthKeyHandler, serhii_zakharchuk: Executing g_a check (1/2)... AuthKeyHandler, serhii_zakharchuk: Executing g_a check (2/2)... AuthKeyHandler, serhii_zakharchuk: Executing g_b check... AuthKeyHandler, serhii_zakharchuk: Preparing client_DH_inner_data... AuthKeyHandler, serhii_zakharchuk: Executing set_client_DH_params... ResponseHandler, serhii_zakharchuk: Trying to assign a response of type Set_client_DH_params_answer to its request... ResponseHandler, serhii_zakharchuk: Does the request of return type Set_client_DH_params_answer match? ResponseHandler, serhii_zakharchuk: Yes AuthKeyHandler, serhii_zakharchuk: Generating authorization key... AuthKeyHandler, serhii_zakharchuk: Diffie Hellman key exchange processed successfully! AuthKeyHandler, serhii_zakharchuk: Auth key generated AuthKeyHandler, serhii_zakharchuk: Binding authorization keys... CallHandler, serhii_zakharchuk: Writing client info (also executing auth.bindTempAuthKey)... MsgIdHandler, serhii_zakharchuk: WARNING: Given message id (6594477004723346433) is bigger than or equal to the current limit (6594477004723313665). Consider syncing your date. AuthKeyHandler, serhii_zakharchuk: Successfully binded temporary and permanent authorization keys, DC 3 CallHandler, serhii_zakharchuk: Writing client info (also executing help.getConfig)... AuthKeyHandler, serhii_zakharchuk: Generating temporary authorization key for DC 4... AuthKeyHandler, serhii_zakharchuk: Requesting pq... ResponseHandler, serhii_zakharchuk: Trying to assign a response of type ResPQ to its request... ResponseHandler, serhii_zakharchuk: Does the request of return type ResPQ match? ResponseHandler, serhii_zakharchuk: Yes AuthKeyHandler, serhii_zakharchuk: Factorization 1726161897429740807 = 1161442859 * 1486221973 RSA, serhii_zakharchuk: Encrypting with rsa key... AuthKeyHandler, serhii_zakharchuk: Starting Diffie Hellman key exchange ResponseHandler, serhii_zakharchuk: Trying to assign a response of type Server_DH_Params to its request... ResponseHandler, serhii_zakharchuk: Does the request of return type Server_DH_Params match? ResponseHandler, serhii_zakharchuk: Yes AuthKeyHandler, serhii_zakharchuk: Server-client time delta = -1.0 s AuthKeyHandler, serhii_zakharchuk: Executing p/g checks (1/2)... AuthKeyHandler, serhii_zakharchuk: Executing p/g checks (2/2)... AuthKeyHandler, serhii_zakharchuk: Executing g check... AuthKeyHandler, serhii_zakharchuk: Executing g_a check (1/2)... AuthKeyHandler, serhii_zakharchuk: Executing g_a check (2/2)... AuthKeyHandler, serhii_zakharchuk: Generating b... AuthKeyHandler, serhii_zakharchuk: Generating g_b... AuthKeyHandler, serhii_zakharchuk: Executing g_a check (1/2)... AuthKeyHandler, serhii_zakharchuk: Executing g_a check (2/2)... AuthKeyHandler, serhii_zakharchuk: Executing g_b check... AuthKeyHandler, serhii_zakharchuk: Preparing client_DH_inner_data... AuthKeyHandler, serhii_zakharchuk: Executing set_client_DH_params... ResponseHandler, serhii_zakharchuk: Trying to assign a response of type Set_client_DH_params_answer to its request... ResponseHandler, serhii_zakharchuk: Does the request of return type Set_client_DH_params_answer match? ResponseHandler, serhii_zakharchuk: Yes AuthKeyHandler, serhii_zakharchuk: Generating authorization key... AuthKeyHandler, serhii_zakharchuk: Diffie Hellman key exchange processed successfully! AuthKeyHandler, serhii_zakharchuk: Auth key generated AuthKeyHandler, serhii_zakharchuk: Binding authorization keys... CallHandler, serhii_zakharchuk: Writing client info (also executing auth.bindTempAuthKey)... MsgIdHandler, serhii_zakharchuk: WARNING: Given message id (6594477006776658945) is bigger than or equal to the current limit (6594477006776643585). Consider syncing your date. AuthKeyHandler, serhii_zakharchuk: Successfully binded temporary and permanent authorization keys, DC 4 CallHandler, serhii_zakharchuk: Writing client info (also executing help.getConfig)... AuthKeyHandler, serhii_zakharchuk: Generating temporary authorization key for DC 4_media... AuthKeyHandler, serhii_zakharchuk: Requesting pq... ResponseHandler, serhii_zakharchuk: Trying to assign a response of type ResPQ to its request... ResponseHandler, serhii_zakharchuk: Does the request of return type ResPQ match? ResponseHandler, serhii_zakharchuk: Yes AuthKeyHandler, serhii_zakharchuk: Factorization 3556831637003442059 = 1849975847 * 1922636797 RSA, serhii_zakharchuk: Encrypting with rsa key... AuthKeyHandler, serhii_zakharchuk: Starting Diffie Hellman key exchange ResponseHandler, serhii_zakharchuk: Trying to assign a response of type Server_DH_Params to its request... ResponseHandler, serhii_zakharchuk: Does the request of return type Server_DH_Params match? ResponseHandler, serhii_zakharchuk: Yes AuthKeyHandler, serhii_zakharchuk: Server-client time delta = 0.0 s AuthKeyHandler, serhii_zakharchuk: Executing p/g checks (1/2)... AuthKeyHandler, serhii_zakharchuk: Executing p/g checks (2/2)... AuthKeyHandler, serhii_zakharchuk: Executing g check... AuthKeyHandler, serhii_zakharchuk: Executing g_a check (1/2)... AuthKeyHandler, serhii_zakharchuk: Executing g_a check (2/2)... AuthKeyHandler, serhii_zakharchuk: Generating b... AuthKeyHandler, serhii_zakharchuk: Generating g_b... AuthKeyHandler, serhii_zakharchuk: Executing g_a check (1/2)... AuthKeyHandler, serhii_zakharchuk: Executing g_a check (2/2)... AuthKeyHandler, serhii_zakharchuk: Executing g_b check... AuthKeyHandler, serhii_zakharchuk: Preparing client_DH_inner_data... AuthKeyHandler, serhii_zakharchuk: Executing set_client_DH_params... ResponseHandler, serhii_zakharchuk: Trying to assign a response of type Set_client_DH_params_answer to its request... ResponseHandler, serhii_zakharchuk: Does the request of return type Set_client_DH_params_answer match? ResponseHandler, serhii_zakharchuk: Yes AuthKeyHandler, serhii_zakharchuk: Generating authorization key... AuthKeyHandler, serhii_zakharchuk: Diffie Hellman key exchange processed successfully! AuthKeyHandler, serhii_zakharchuk: Auth key generated AuthKeyHandler, serhii_zakharchuk: Binding authorization keys... CallHandler, serhii_zakharchuk: Writing client info (also executing auth.bindTempAuthKey)... MsgIdHandler, serhii_zakharchuk: WARNING: Given message id (6594477008169098241) is bigger than or equal to the current limit (6594477008169046017). Consider syncing your date. AuthKeyHandler, serhii_zakharchuk: Successfully binded temporary and permanent authorization keys, DC 4_media CallHandler, serhii_zakharchuk: Writing client info (also executing help.getConfig)... AuthKeyHandler, serhii_zakharchuk: Generating temporary authorization key for DC 5... AuthKeyHandler, serhii_zakharchuk: Requesting pq... ResponseHandler, serhii_zakharchuk: Trying to assign a response of type ResPQ to its request... ResponseHandler, serhii_zakharchuk: Does the request of return type ResPQ match? ResponseHandler, serhii_zakharchuk: Yes AuthKeyHandler, serhii_zakharchuk: Factorization 2949228190987688569 = 1518303781 * 1942449349 RSA, serhii_zakharchuk: Encrypting with rsa key... AuthKeyHandler, serhii_zakharchuk: Starting Diffie Hellman key exchange ResponseHandler, serhii_zakharchuk: Trying to assign a response of type Server_DH_Params to its request... ResponseHandler, serhii_zakharchuk: Does the request of return type Server_DH_Params match? ResponseHandler, serhii_zakharchuk: Yes AuthKeyHandler, serhii_zakharchuk: Server-client time delta = 0.0 s AuthKeyHandler, serhii_zakharchuk: Executing p/g checks (1/2)... AuthKeyHandler, serhii_zakharchuk: Executing p/g checks (2/2)... AuthKeyHandler, serhii_zakharchuk: Executing g check... AuthKeyHandler, serhii_zakharchuk: Executing g_a check (1/2)... AuthKeyHandler, serhii_zakharchuk: Executing g_a check (2/2)... AuthKeyHandler, serhii_zakharchuk: Generating b... AuthKeyHandler, serhii_zakharchuk: Generating g_b... AuthKeyHandler, serhii_zakharchuk: Executing g_a check (1/2)... AuthKeyHandler, serhii_zakharchuk: Executing g_a check (2/2)... AuthKeyHandler, serhii_zakharchuk: Executing g_b check... AuthKeyHandler, serhii_zakharchuk: Preparing client_DH_inner_data... AuthKeyHandler, serhii_zakharchuk: Executing set_client_DH_params... ResponseHandler, serhii_zakharchuk: Trying to assign a response of type Set_client_DH_params_answer to its request... ResponseHandler, serhii_zakharchuk: Does the request of return type Set_client_DH_params_answer match? ResponseHandler, serhii_zakharchuk: Yes AuthKeyHandler, serhii_zakharchuk: Generating authorization key... AuthKeyHandler, serhii_zakharchuk: Diffie Hellman key exchange processed successfully! AuthKeyHandler, serhii_zakharchuk: Auth key generated AuthKeyHandler, serhii_zakharchuk: Binding authorization keys... CallHandler, serhii_zakharchuk: Writing client info (also executing auth.bindTempAuthKey)... MsgIdHandler, serhii_zakharchuk: WARNING: Given message id (6594477015906715649) is bigger than or equal to the current limit (6594477015906668545). Consider syncing your date. AuthKeyHandler, serhii_zakharchuk: Successfully binded temporary and permanent authorization keys, DC 5 CallHandler, serhii_zakharchuk: Writing client info (also executing help.getConfig)... MTProto, serhii_zakharchuk: Updated config! MTProto, serhii_zakharchuk: { "_": "config", "phonecalls_enabled": true, "default_p2p_contacts": false, "preload_featured_stickers": false, "ignore_phone_entities": false, "revoke_pm_inbox": false, "blocked_mode": false, "date": 1535396323, "expires": 1535399393, "test_mode": false, "this_dc": 2, "dc_txt_domain_name": "apv2.stel.com", "chat_size_max": 200, "megagroup_size_max": 100000, "forwarded_count_max": 100, "online_update_period_ms": 120000, "offline_blur_timeout_ms": 5000, "offline_idle_timeout_ms": 30000, "online_cloud_timeout_ms": 300000, "notify_cloud_delay_ms": 30000, "notify_default_delay_ms": 1500, "push_chat_period_ms": 60000, "push_chat_limit": 2, "saved_gifs_limit": 200, "edit_time_limit": 172800, "revoke_time_limit": 172800, "revoke_pm_time_limit": 172800, "rating_e_decay": 2419200, "stickers_recent_limit": 200, "stickers_faved_limit": 5, "channels_read_media_period": 604800, "pinned_dialogs_count_max": 5, "call_receive_timeout_ms": 20000, "call_ring_timeout_ms": 90000, "call_connect_timeout_ms": 30000, "call_packet_timeout_ms": 10000, "me_url_prefix": "https://t.me/", "gif_search_username": "gif", "venue_search_username": "foursquare", "img_search_username": "bing", "caption_length_max": 200, "message_length_max": 4096, "webfile_dc_id": 4 } MTProto, serhii_zakharchuk: We're in NL, nearest DC is 4. DataCenter, serhii_zakharchuk: Disconnecting from DC 2... DataCenter, serhii_zakharchuk: Disconnecting from DC 1... DataCenter, serhii_zakharchuk: Disconnecting from DC 3... DataCenter, serhii_zakharchuk: Disconnecting from DC 4... DataCenter, serhii_zakharchuk: Disconnecting from DC 4_media... DataCenter, serhii_zakharchuk: Disconnecting from DC 5... DataCenter, serhii_zakharchuk: Connecting to DC 2 (main server, ipv4, tcp_abridged)... DataCenter, serhii_zakharchuk: Trying connection on port 443 of 149.154.167.51... DataCenter, serhii_zakharchuk: OK! DataCenter, serhii_zakharchuk: Connecting to DC 1 (main server, ipv4, tcp_abridged)... DataCenter, serhii_zakharchuk: Trying connection on port 443 of 149.154.175.50... DataCenter, serhii_zakharchuk: OK! DataCenter, serhii_zakharchuk: Connecting to DC 3 (main server, ipv4, tcp_abridged)... DataCenter, serhii_zakharchuk: Trying connection on port 443 of 149.154.175.100... DataCenter, serhii_zakharchuk: OK! DataCenter, serhii_zakharchuk: Connecting to DC 4 (main server, ipv4, tcp_abridged)... DataCenter, serhii_zakharchuk: Trying connection on port 443 of 149.154.167.91... DataCenter, serhii_zakharchuk: OK! DataCenter, serhii_zakharchuk: Connecting to DC 4_media (main server, ipv4, tcp_abridged)... DataCenter, serhii_zakharchuk: Trying connection on port 443 of 149.154.166.120... DataCenter, serhii_zakharchuk: OK! DataCenter, serhii_zakharchuk: Connecting to DC 5 (main server, ipv4, tcp_abridged)... DataCenter, serhii_zakharchuk: Trying connection on port 443 of 91.108.56.163... DataCenter, serhii_zakharchuk: OK! Exception, serhii_zakharchuk: Received request to switch to DC 2 in ResponseHandler.php:356 CallHandler, serhii_zakharchuk: Received request to switch to DC 2 API, serhii_zakharchuk: Serializing MadelineProto... APIFactory, serhii_zakharchuk: Didn't serialize in a while, doing that now... API, serhii_zakharchuk: Serializing MadelineProto... Serialization, serhii_zakharchuk: Waiting for exclusive lock of serialization lockfile... Serialization, serhii_zakharchuk: Lock acquired, serializing TOS, serhii_zakharchuk: Fetching TOS... yii\web\HeadersAlreadySentException: Headers already sent in /danog/madelineproto/src/danog/MadelineProto/Logger.php on line /yiisoft/yii2/web/Response.php:366 Stack trace: yiisoft/yii2/web/Response.php(339): yii\web\Response->sendHeaders() yiisoft/yii2/base/Application.php(392): yii\web\Response->send() index.php(19): yii\base\Application->run() #3 {main} API, serhii_zakharchuk: Serializing MadelineProto... Serialization, serhii_zakharchuk: Waiting for exclusive lock of serialization lockfile... Serialization, serhii_zakharchuk: Lock acquired, serializing
Aplear commented 6 years ago

that's my result now

danog commented 6 years ago

You should stop the yii lib from sending headers

Aplear commented 6 years ago

Now I get this - all result in HTML response header not JSON

Logger, serhii_zakharchuk: MadelineProto Logger, serhii_zakharchuk: Copyright (C) 2016-2018 Daniil Gentili Logger, serhii_zakharchuk: Licensed under AGPLv3 Logger, serhii_zakharchuk: https://github.com/danog/MadelineProto MTProto, serhii_zakharchuk: Serialization is out of date, reconstructing object! TL, serhii_zakharchuk: Loading TL schemes... TL, serhii_zakharchuk: Parsing TL_mtproto_v1.json... TL, serhii_zakharchuk: Parsing TL_telegram_v82.tl... TL, serhii_zakharchuk: CRC32 mismatch (402d9b47, 37982646) for ipPortSecret#37982646 ipv4:int port:int secret:bytes = IpPort; TL, serhii_zakharchuk: CRC32 mismatch (020634ce, 4679b65f) for accessPointRule#4679b65f phone_prefix_rules:string dc_id:int ips:vector

= AccessPointRule; TL, serhii_zakharchuk: CRC32 mismatch (066d2808, 5a592a6c) for help.configSimple#5a592a6c date:int expires:int rules:vector = help.ConfigSimple; TL, serhii_zakharchuk: CRC32 mismatch (450b7115, c88974ac) for channel#c88974ac flags:# creator:flags.0?true left:flags.2?true editor:flags.3?true broadcast:flags.5?true verified:flags.7?true megagroup:flags.8?true restricted:flags.9?true democracy:flags.10?true signatures:flags.11?true min:flags.12?true id:int access_hash:flags.13?long title:string username:flags.6?string photo:ChatPhoto date:int version:int restriction_reason:flags.9?string admin_rights:flags.14?ChannelAdminRights banned_rights:flags.15?ChannelBannedRights participants_count:flags.17?int = Chat; TL, serhii_zakharchuk: Parsing TL_secret.tl... TL, serhii_zakharchuk: Parsing TL_calls.tl... TL, serhii_zakharchuk: CRC32 mismatch (e8201c08, dbf948c1) for decryptedDataBlock#dbf948c1 random_id:long random_bytes:string flags:# voice_call_id:flags.2?int128 in_seq_no:flags.4?int out_seq_no:flags.4?int recent_received_mask:flags.5?int proto:flags.3?int extra:flags.1?string raw_data:flags.0?string = DecryptedDataBlock; TL, serhii_zakharchuk: CRC32 mismatch (d20a6f5c, cc0d0e76) for simpleDataBlock#cc0d0e76 random_id:long random_bytes:string raw_data:string = DecryptedDataBlock; TL, serhii_zakharchuk: Parsing TL_botAPI.tl... DataCenter, serhii_zakharchuk: Disconnecting from DC 2... DataCenter, serhii_zakharchuk: Disconnecting from DC 1... DataCenter, serhii_zakharchuk: Disconnecting from DC 3... DataCenter, serhii_zakharchuk: Disconnecting from DC 4... DataCenter, serhii_zakharchuk: Disconnecting from DC 4_media... DataCenter, serhii_zakharchuk: Disconnecting from DC 5... DataCenter, serhii_zakharchuk: Connecting to DC 2 (main server, ipv4, tcp_abridged)... DataCenter, serhii_zakharchuk: Trying connection on port 443 of 149.154.167.51... DataCenter, serhii_zakharchuk: OK! DataCenter, serhii_zakharchuk: Connecting to DC 1 (main server, ipv4, tcp_abridged)... DataCenter, serhii_zakharchuk: Trying connection on port 443 of 149.154.175.50... DataCenter, serhii_zakharchuk: OK! DataCenter, serhii_zakharchuk: Connecting to DC 3 (main server, ipv4, tcp_abridged)... DataCenter, serhii_zakharchuk: Trying connection on port 443 of 149.154.175.100... DataCenter, serhii_zakharchuk: OK! DataCenter, serhii_zakharchuk: Connecting to DC 4 (main server, ipv4, tcp_abridged)... DataCenter, serhii_zakharchuk: Trying connection on port 443 of 149.154.167.91... DataCenter, serhii_zakharchuk: OK! DataCenter, serhii_zakharchuk: Connecting to DC 4_media (main server, ipv4, tcp_abridged)... DataCenter, serhii_zakharchuk: Trying connection on port 443 of 149.154.164.250... DataCenter, serhii_zakharchuk: OK! DataCenter, serhii_zakharchuk: Connecting to DC 5 (main server, ipv4, tcp_abridged)... DataCenter, serhii_zakharchuk: Trying connection on port 443 of 91.108.56.125... DataCenter, serhii_zakharchuk: OK! AuthKeyHandler, serhii_zakharchuk: Generating temporary authorization key for DC 2... AuthKeyHandler, serhii_zakharchuk: Requesting pq... ResponseHandler, serhii_zakharchuk: Trying to assign a response of type ResPQ to its request... ResponseHandler, serhii_zakharchuk: Does the request of return type ResPQ match? ResponseHandler, serhii_zakharchuk: Yes AuthKeyHandler, serhii_zakharchuk: Factorization 1931470923137301523 = 1284556843 * 1503608761 RSA, serhii_zakharchuk: Encrypting with rsa key... AuthKeyHandler, serhii_zakharchuk: Starting Diffie Hellman key exchange ResponseHandler, serhii_zakharchuk: Trying to assign a response of type Server_DH_Params to its request... ResponseHandler, serhii_zakharchuk: Does the request of return type Server_DH_Params match? ResponseHandler, serhii_zakharchuk: Yes AuthKeyHandler, serhii_zakharchuk: Server-client time delta = 0.0 s AuthKeyHandler, serhii_zakharchuk: Executing p/g checks (1/2)... AuthKeyHandler, serhii_zakharchuk: Executing p/g checks (2/2)... AuthKeyHandler, serhii_zakharchuk: Executing g check... AuthKeyHandler, serhii_zakharchuk: Executing g_a check (1/2)... AuthKeyHandler, serhii_zakharchuk: Executing g_a check (2/2)... AuthKeyHandler, serhii_zakharchuk: Generating b... AuthKeyHandler, serhii_zakharchuk: Generating g_b... AuthKeyHandler, serhii_zakharchuk: Executing g_a check (1/2)... AuthKeyHandler, serhii_zakharchuk: Executing g_a check (2/2)... AuthKeyHandler, serhii_zakharchuk: Executing g_b check... AuthKeyHandler, serhii_zakharchuk: Preparing client_DH_inner_data... AuthKeyHandler, serhii_zakharchuk: Executing set_client_DH_params... ResponseHandler, serhii_zakharchuk: Trying to assign a response of type Set_client_DH_params_answer to its request... ResponseHandler, serhii_zakharchuk: Does the request of return type Set_client_DH_params_answer match? ResponseHandler, serhii_zakharchuk: Yes AuthKeyHandler, serhii_zakharchuk: Generating authorization key... AuthKeyHandler, serhii_zakharchuk: Diffie Hellman key exchange processed successfully! AuthKeyHandler, serhii_zakharchuk: Auth key generated AuthKeyHandler, serhii_zakharchuk: Binding authorization keys... CallHandler, serhii_zakharchuk: Writing client info (also executing auth.bindTempAuthKey)... MsgIdHandler, serhii_zakharchuk: WARNING: Given message id (6594725387109354497) is bigger than or equal to the current limit (6594725387109320705). Consider syncing your date. AuthKeyHandler, serhii_zakharchuk: Successfully binded temporary and permanent authorization keys, DC 2 CallHandler, serhii_zakharchuk: Writing client info (also executing help.getConfig)... MTProto, serhii_zakharchuk: Got new DC options, reconnecting DataCenter, serhii_zakharchuk: Disconnecting from DC 2... DataCenter, serhii_zakharchuk: Disconnecting from DC 1... DataCenter, serhii_zakharchuk: Disconnecting from DC 3... DataCenter, serhii_zakharchuk: Disconnecting from DC 4... DataCenter, serhii_zakharchuk: Disconnecting from DC 4_media... DataCenter, serhii_zakharchuk: Disconnecting from DC 5... DataCenter, serhii_zakharchuk: Connecting to DC 2 (main server, ipv4, tcp_abridged)... DataCenter, serhii_zakharchuk: Trying connection on port 443 of 149.154.167.51... DataCenter, serhii_zakharchuk: OK! DataCenter, serhii_zakharchuk: Connecting to DC 1 (main server, ipv4, tcp_abridged)... DataCenter, serhii_zakharchuk: Trying connection on port 443 of 149.154.175.50... DataCenter, serhii_zakharchuk: OK! DataCenter, serhii_zakharchuk: Connecting to DC 3 (main server, ipv4, tcp_abridged)... DataCenter, serhii_zakharchuk: Trying connection on port 443 of 149.154.175.100... DataCenter, serhii_zakharchuk: OK! DataCenter, serhii_zakharchuk: Connecting to DC 4 (main server, ipv4, tcp_abridged)... DataCenter, serhii_zakharchuk: Trying connection on port 443 of 149.154.167.91... DataCenter, serhii_zakharchuk: OK! DataCenter, serhii_zakharchuk: Connecting to DC 4_media (main server, ipv4, tcp_abridged)... DataCenter, serhii_zakharchuk: Trying connection on port 443 of 149.154.166.120... DataCenter, serhii_zakharchuk: OK! DataCenter, serhii_zakharchuk: Connecting to DC 5 (main server, ipv4, tcp_abridged)... DataCenter, serhii_zakharchuk: Trying connection on port 443 of 91.108.56.163... DataCenter, serhii_zakharchuk: OK! AuthKeyHandler, serhii_zakharchuk: Generating temporary authorization key for DC 1... AuthKeyHandler, serhii_zakharchuk: Requesting pq... ResponseHandler, serhii_zakharchuk: Trying to assign a response of type ResPQ to its request... ResponseHandler, serhii_zakharchuk: Does the request of return type ResPQ match? ResponseHandler, serhii_zakharchuk: Yes AuthKeyHandler, serhii_zakharchuk: Factorization 2469299744410106723 = 1540378813 * 1603047071 RSA, serhii_zakharchuk: Encrypting with rsa key... AuthKeyHandler, serhii_zakharchuk: Starting Diffie Hellman key exchange ResponseHandler, serhii_zakharchuk: Trying to assign a response of type Server_DH_Params to its request... ResponseHandler, serhii_zakharchuk: Does the request of return type Server_DH_Params match? ResponseHandler, serhii_zakharchuk: Yes AuthKeyHandler, serhii_zakharchuk: Server-client time delta = 0.0 s AuthKeyHandler, serhii_zakharchuk: Executing p/g checks (1/2)... AuthKeyHandler, serhii_zakharchuk: Executing p/g checks (2/2)... AuthKeyHandler, serhii_zakharchuk: Executing g check... AuthKeyHandler, serhii_zakharchuk: Executing g_a check (1/2)... AuthKeyHandler, serhii_zakharchuk: Executing g_a check (2/2)... AuthKeyHandler, serhii_zakharchuk: Generating b... AuthKeyHandler, serhii_zakharchuk: Generating g_b... AuthKeyHandler, serhii_zakharchuk: Executing g_a check (1/2)... AuthKeyHandler, serhii_zakharchuk: Executing g_a check (2/2)... AuthKeyHandler, serhii_zakharchuk: Executing g_b check... AuthKeyHandler, serhii_zakharchuk: Preparing client_DH_inner_data... AuthKeyHandler, serhii_zakharchuk: Executing set_client_DH_params... ResponseHandler, serhii_zakharchuk: Trying to assign a response of type Set_client_DH_params_answer to its request... ResponseHandler, serhii_zakharchuk: Does the request of return type Set_client_DH_params_answer match? ResponseHandler, serhii_zakharchuk: Yes AuthKeyHandler, serhii_zakharchuk: Generating authorization key... AuthKeyHandler, serhii_zakharchuk: Diffie Hellman key exchange processed successfully! AuthKeyHandler, serhii_zakharchuk: Auth key generated AuthKeyHandler, serhii_zakharchuk: Binding authorization keys... CallHandler, serhii_zakharchuk: Writing client info (also executing auth.bindTempAuthKey)... MsgIdHandler, serhii_zakharchuk: WARNING: Given message id (6594725392051228673) is bigger than or equal to the current limit (6594725392051186689). Consider syncing your date. AuthKeyHandler, serhii_zakharchuk: Successfully binded temporary and permanent authorization keys, DC 1 CallHandler, serhii_zakharchuk: Writing client info (also executing help.getConfig)... AuthKeyHandler, serhii_zakharchuk: Generating temporary authorization key for DC 3... AuthKeyHandler, serhii_zakharchuk: Requesting pq... ResponseHandler, serhii_zakharchuk: Trying to assign a response of type ResPQ to its request... ResponseHandler, serhii_zakharchuk: Does the request of return type ResPQ match? ResponseHandler, serhii_zakharchuk: Yes AuthKeyHandler, serhii_zakharchuk: Factorization 2285443158701712133 = 1402356077 * 1629716729 RSA, serhii_zakharchuk: Encrypting with rsa key... AuthKeyHandler, serhii_zakharchuk: Starting Diffie Hellman key exchange ResponseHandler, serhii_zakharchuk: Trying to assign a response of type Server_DH_Params to its request... ResponseHandler, serhii_zakharchuk: Does the request of return type Server_DH_Params match? ResponseHandler, serhii_zakharchuk: Yes AuthKeyHandler, serhii_zakharchuk: Server-client time delta = 0.0 s AuthKeyHandler, serhii_zakharchuk: Executing p/g checks (1/2)... AuthKeyHandler, serhii_zakharchuk: Executing p/g checks (2/2)... AuthKeyHandler, serhii_zakharchuk: Executing g check... AuthKeyHandler, serhii_zakharchuk: Executing g_a check (1/2)... AuthKeyHandler, serhii_zakharchuk: Executing g_a check (2/2)... AuthKeyHandler, serhii_zakharchuk: Generating b... AuthKeyHandler, serhii_zakharchuk: Generating g_b... AuthKeyHandler, serhii_zakharchuk: Executing g_a check (1/2)... AuthKeyHandler, serhii_zakharchuk: Executing g_a check (2/2)... AuthKeyHandler, serhii_zakharchuk: Executing g_b check... AuthKeyHandler, serhii_zakharchuk: Preparing client_DH_inner_data... AuthKeyHandler, serhii_zakharchuk: Executing set_client_DH_params... ResponseHandler, serhii_zakharchuk: Trying to assign a response of type Set_client_DH_params_answer to its request... ResponseHandler, serhii_zakharchuk: Does the request of return type Set_client_DH_params_answer match? ResponseHandler, serhii_zakharchuk: Yes AuthKeyHandler, serhii_zakharchuk: Generating authorization key... AuthKeyHandler, serhii_zakharchuk: Diffie Hellman key exchange processed successfully! AuthKeyHandler, serhii_zakharchuk: Auth key generated AuthKeyHandler, serhii_zakharchuk: Binding authorization keys... CallHandler, serhii_zakharchuk: Writing client info (also executing auth.bindTempAuthKey)... MsgIdHandler, serhii_zakharchuk: WARNING: Given message id (6594725396021675009) is bigger than or equal to the current limit (6594725396021624833). Consider syncing your date. AuthKeyHandler, serhii_zakharchuk: Successfully binded temporary and permanent authorization keys, DC 3 CallHandler, serhii_zakharchuk: Writing client info (also executing help.getConfig)... AuthKeyHandler, serhii_zakharchuk: Generating temporary authorization key for DC 4... AuthKeyHandler, serhii_zakharchuk: Requesting pq... ResponseHandler, serhii_zakharchuk: Trying to assign a response of type ResPQ to its request... ResponseHandler, serhii_zakharchuk: Does the request of return type ResPQ match? ResponseHandler, serhii_zakharchuk: Yes AuthKeyHandler, serhii_zakharchuk: Factorization 3124884392057230739 = 1696637989 * 1841809751 RSA, serhii_zakharchuk: Encrypting with rsa key... AuthKeyHandler, serhii_zakharchuk: Starting Diffie Hellman key exchange ResponseHandler, serhii_zakharchuk: Trying to assign a response of type Server_DH_Params to its request... ResponseHandler, serhii_zakharchuk: Does the request of return type Server_DH_Params match? ResponseHandler, serhii_zakharchuk: Yes AuthKeyHandler, serhii_zakharchuk: Server-client time delta = 0.0 s AuthKeyHandler, serhii_zakharchuk: Executing p/g checks (1/2)... AuthKeyHandler, serhii_zakharchuk: Executing p/g checks (2/2)... AuthKeyHandler, serhii_zakharchuk: Executing g check... AuthKeyHandler, serhii_zakharchuk: Executing g_a check (1/2)... AuthKeyHandler, serhii_zakharchuk: Executing g_a check (2/2)... AuthKeyHandler, serhii_zakharchuk: Generating b... AuthKeyHandler, serhii_zakharchuk: Generating g_b... AuthKeyHandler, serhii_zakharchuk: Executing g_a check (1/2)... AuthKeyHandler, serhii_zakharchuk: Executing g_a check (2/2)... AuthKeyHandler, serhii_zakharchuk: Executing g_b check... AuthKeyHandler, serhii_zakharchuk: Preparing client_DH_inner_data... AuthKeyHandler, serhii_zakharchuk: Executing set_client_DH_params... ResponseHandler, serhii_zakharchuk: Trying to assign a response of type Set_client_DH_params_answer to its request... ResponseHandler, serhii_zakharchuk: Does the request of return type Set_client_DH_params_answer match? ResponseHandler, serhii_zakharchuk: Yes AuthKeyHandler, serhii_zakharchuk: Generating authorization key... AuthKeyHandler, serhii_zakharchuk: Diffie Hellman key exchange processed successfully! AuthKeyHandler, serhii_zakharchuk: Auth key generated AuthKeyHandler, serhii_zakharchuk: Binding authorization keys... CallHandler, serhii_zakharchuk: Writing client info (also executing auth.bindTempAuthKey)... MsgIdHandler, serhii_zakharchuk: WARNING: Given message id (6594725398022921217) is bigger than or equal to the current limit (6594725398022882305). Consider syncing your date. AuthKeyHandler, serhii_zakharchuk: Successfully binded temporary and permanent authorization keys, DC 4 CallHandler, serhii_zakharchuk: Writing client info (also executing help.getConfig)... AuthKeyHandler, serhii_zakharchuk: Generating temporary authorization key for DC 4_media... AuthKeyHandler, serhii_zakharchuk: Requesting pq... ResponseHandler, serhii_zakharchuk: Trying to assign a response of type ResPQ to its request... ResponseHandler, serhii_zakharchuk: Does the request of return type ResPQ match? ResponseHandler, serhii_zakharchuk: Yes AuthKeyHandler, serhii_zakharchuk: Factorization 1706256253642238651 = 1174255253 * 1453053967 RSA, serhii_zakharchuk: Encrypting with rsa key... AuthKeyHandler, serhii_zakharchuk: Starting Diffie Hellman key exchange ResponseHandler, serhii_zakharchuk: Trying to assign a response of type Server_DH_Params to its request... ResponseHandler, serhii_zakharchuk: Does the request of return type Server_DH_Params match? ResponseHandler, serhii_zakharchuk: Yes AuthKeyHandler, serhii_zakharchuk: Server-client time delta = 0.0 s AuthKeyHandler, serhii_zakharchuk: Executing p/g checks (1/2)... AuthKeyHandler, serhii_zakharchuk: Executing p/g checks (2/2)... AuthKeyHandler, serhii_zakharchuk: Executing g check... AuthKeyHandler, serhii_zakharchuk: Executing g_a check (1/2)... AuthKeyHandler, serhii_zakharchuk: Executing g_a check (2/2)... AuthKeyHandler, serhii_zakharchuk: Generating b... AuthKeyHandler, serhii_zakharchuk: Generating g_b... AuthKeyHandler, serhii_zakharchuk: Executing g_a check (1/2)... AuthKeyHandler, serhii_zakharchuk: Executing g_a check (2/2)... AuthKeyHandler, serhii_zakharchuk: Executing g_b check... AuthKeyHandler, serhii_zakharchuk: Preparing client_DH_inner_data... AuthKeyHandler, serhii_zakharchuk: Executing set_client_DH_params... ResponseHandler, serhii_zakharchuk: Trying to assign a response of type Set_client_DH_params_answer to its request... ResponseHandler, serhii_zakharchuk: Does the request of return type Set_client_DH_params_answer match? ResponseHandler, serhii_zakharchuk: Yes AuthKeyHandler, serhii_zakharchuk: Generating authorization key... AuthKeyHandler, serhii_zakharchuk: Diffie Hellman key exchange processed successfully! AuthKeyHandler, serhii_zakharchuk: Auth key generated AuthKeyHandler, serhii_zakharchuk: Binding authorization keys... CallHandler, serhii_zakharchuk: Writing client info (also executing auth.bindTempAuthKey)... MsgIdHandler, serhii_zakharchuk: WARNING: Given message id (6594725399322103809) is bigger than or equal to the current limit (6594725399322084353). Consider syncing your date. AuthKeyHandler, serhii_zakharchuk: Successfully binded temporary and permanent authorization keys, DC 4_media CallHandler, serhii_zakharchuk: Writing client info (also executing help.getConfig)... AuthKeyHandler, serhii_zakharchuk: Generating temporary authorization key for DC 5... AuthKeyHandler, serhii_zakharchuk: Requesting pq... ResponseHandler, serhii_zakharchuk: Trying to assign a response of type ResPQ to its request... ResponseHandler, serhii_zakharchuk: Does the request of return type ResPQ match? ResponseHandler, serhii_zakharchuk: Yes AuthKeyHandler, serhii_zakharchuk: Factorization 1749896363719979567 = 1262918179 * 1385597573 RSA, serhii_zakharchuk: Encrypting with rsa key... AuthKeyHandler, serhii_zakharchuk: Starting Diffie Hellman key exchange ResponseHandler, serhii_zakharchuk: Trying to assign a response of type Server_DH_Params to its request... ResponseHandler, serhii_zakharchuk: Does the request of return type Server_DH_Params match? ResponseHandler, serhii_zakharchuk: Yes AuthKeyHandler, serhii_zakharchuk: Server-client time delta = 0.0 s AuthKeyHandler, serhii_zakharchuk: Executing p/g checks (1/2)... AuthKeyHandler, serhii_zakharchuk: Executing p/g checks (2/2)... AuthKeyHandler, serhii_zakharchuk: Executing g check... AuthKeyHandler, serhii_zakharchuk: Executing g_a check (1/2)... AuthKeyHandler, serhii_zakharchuk: Executing g_a check (2/2)... AuthKeyHandler, serhii_zakharchuk: Generating b... AuthKeyHandler, serhii_zakharchuk: Generating g_b... AuthKeyHandler, serhii_zakharchuk: Executing g_a check (1/2)... AuthKeyHandler, serhii_zakharchuk: Executing g_a check (2/2)... AuthKeyHandler, serhii_zakharchuk: Executing g_b check... AuthKeyHandler, serhii_zakharchuk: Preparing client_DH_inner_data... AuthKeyHandler, serhii_zakharchuk: Executing set_client_DH_params... ResponseHandler, serhii_zakharchuk: Trying to assign a response of type Set_client_DH_params_answer to its request... ResponseHandler, serhii_zakharchuk: Does the request of return type Set_client_DH_params_answer match? ResponseHandler, serhii_zakharchuk: Yes AuthKeyHandler, serhii_zakharchuk: Generating authorization key... AuthKeyHandler, serhii_zakharchuk: Diffie Hellman key exchange processed successfully! AuthKeyHandler, serhii_zakharchuk: Auth key generated AuthKeyHandler, serhii_zakharchuk: Binding authorization keys... CallHandler, serhii_zakharchuk: Writing client info (also executing auth.bindTempAuthKey)... MsgIdHandler, serhii_zakharchuk: WARNING: Given message id (6594725404835830785) is bigger than or equal to the current limit (6594725404835779585). Consider syncing your date. AuthKeyHandler, serhii_zakharchuk: Successfully binded temporary and permanent authorization keys, DC 5 CallHandler, serhii_zakharchuk: Writing client info (also executing help.getConfig)... MTProto, serhii_zakharchuk: Updated config! MTProto, serhii_zakharchuk: { "_": "config", "phonecalls_enabled": true, "default_p2p_contacts": false, "preload_featured_stickers": false, "ignore_phone_entities": false, "revoke_pm_inbox": false, "blocked_mode": false, "date": 1535454156, "expires": 1535457954, "test_mode": false, "this_dc": 2, "dc_txt_domain_name": "apv2.stel.com", "chat_size_max": 200, "megagroup_size_max": 100000, "forwarded_count_max": 100, "online_update_period_ms": 120000, "offline_blur_timeout_ms": 5000, "offline_idle_timeout_ms": 30000, "online_cloud_timeout_ms": 300000, "notify_cloud_delay_ms": 30000, "notify_default_delay_ms": 1500, "push_chat_period_ms": 60000, "push_chat_limit": 2, "saved_gifs_limit": 200, "edit_time_limit": 172800, "revoke_time_limit": 172800, "revoke_pm_time_limit": 172800, "rating_e_decay": 2419200, "stickers_recent_limit": 200, "stickers_faved_limit": 5, "channels_read_media_period": 604800, "pinned_dialogs_count_max": 5, "call_receive_timeout_ms": 20000, "call_ring_timeout_ms": 90000, "call_connect_timeout_ms": 30000, "call_packet_timeout_ms": 10000, "me_url_prefix": "https://t.me/", "gif_search_username": "gif", "venue_search_username": "foursquare", "img_search_username": "bing", "caption_length_max": 200, "message_length_max": 4096, "webfile_dc_id": 4 } MTProto, serhii_zakharchuk: We're in NL, nearest DC is 4. DataCenter, serhii_zakharchuk: Disconnecting from DC 2... DataCenter, serhii_zakharchuk: Disconnecting from DC 1... DataCenter, serhii_zakharchuk: Disconnecting from DC 3... DataCenter, serhii_zakharchuk: Disconnecting from DC 4... DataCenter, serhii_zakharchuk: Disconnecting from DC 4_media... DataCenter, serhii_zakharchuk: Disconnecting from DC 5... DataCenter, serhii_zakharchuk: Connecting to DC 2 (main server, ipv4, tcp_abridged)... DataCenter, serhii_zakharchuk: Trying connection on port 443 of 149.154.167.51... DataCenter, serhii_zakharchuk: OK! DataCenter, serhii_zakharchuk: Connecting to DC 1 (main server, ipv4, tcp_abridged)... DataCenter, serhii_zakharchuk: Trying connection on port 443 of 149.154.175.50... DataCenter, serhii_zakharchuk: OK! DataCenter, serhii_zakharchuk: Connecting to DC 3 (main server, ipv4, tcp_abridged)... DataCenter, serhii_zakharchuk: Trying connection on port 443 of 149.154.175.100... DataCenter, serhii_zakharchuk: OK! DataCenter, serhii_zakharchuk: Connecting to DC 4 (main server, ipv4, tcp_abridged)... DataCenter, serhii_zakharchuk: Trying connection on port 443 of 149.154.167.91... DataCenter, serhii_zakharchuk: OK! DataCenter, serhii_zakharchuk: Connecting to DC 4_media (main server, ipv4, tcp_abridged)... DataCenter, serhii_zakharchuk: Trying connection on port 443 of 149.154.166.120... DataCenter, serhii_zakharchuk: OK! DataCenter, serhii_zakharchuk: Connecting to DC 5 (main server, ipv4, tcp_abridged)... DataCenter, serhii_zakharchuk: Trying connection on port 443 of 91.108.56.163... DataCenter, serhii_zakharchuk: OK! Exception, serhii_zakharchuk: Received request to switch to DC 2 in ResponseHandler.php:356 CallHandler, serhii_zakharchuk: Received request to switch to DC 2 API, serhii_zakharchuk: Serializing MadelineProto... APIFactory, serhii_zakharchuk: Didn't serialize in a while, doing that now... API, serhii_zakharchuk: Serializing MadelineProto... Serialization, serhii_zakharchuk: Waiting for exclusive lock of serialization lockfile... Serialization, serhii_zakharchuk: Lock acquired, serializing TOS, serhii_zakharchuk: Fetching TOS... {"messages":[{"_":"message","out":true,"mentioned":false,"media_unread":false,"silent":false,"post":true,"id":117,"to_id":{"_":"peerChannel","channel_id":1326038312},"date":1535375484,"message":"Hi!\nThanks for creating MadelineProto! <3","views":1},{"_":"message","out":true,"mentioned":false,"media_unread":false,"silent":false,"post":true,"id":116,"to_id":{"_":"peerChannel","channel_id":1326038312},"date":1535375418,"message":"Hi!\nThanks for creating MadelineProto! <3","views":1},{"_":"message","out":true,"mentioned":false,"media_unread":false,"silent":false,"post":true,"id":115,"to_id":{"_":"peerChannel","channel_id":1326038312},"date":1535372130,"message":"Hi!\nThanks for creating MadelineProto! <3","views":2},{"_":"message","out":true,"mentioned":false,"media_unread":false,"silent":false,"post":true,"id":114,"to_id":{"_":"peerChannel","channel_id":1326038312},"date":1535369717,"message":"Hi!\nThanks for creating MadelineProto! <3","views":2},{"_":"message","out":true,"mentioned":false,"media_unread":false,"silent":false,"post":true,"id":113,"to_id":{"_":"peerChannel","channel_id":1326038312},"date":1534858056,"message":"Hi!\nThanks for creating MadelineProto! <3","views":3}],"total":117,"user":{"id":412075978,"first_name":"Serhii","last_name":"Zakharchuk","username":"serhii_zakharchuk","phone":"380662561978"}}API, serhii_zakharchuk: Serializing MadelineProto... Serialization, serhii_zakharchuk: Waiting for exclusive lock of serialization lockfile... Serialization, serhii_zakharchuk: Lock acquired, serializing
danog commented 6 years ago

These are the logs, to disable them check the appropriate setting. https://docs.madelineproto.xyz/docs/LOGGING.html

danog commented 6 years ago

Actually do NOT disable them, just send them to a file