Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error when executing testing.php #17

Closed
Wongka opened this issue Nov 1, 2016 · 2 comments
Closed

error when executing testing.php #17

Wongka opened this issue Nov 1, 2016 · 2 comments

Comments

@Wongka
Copy link

Wongka commented Nov 1, 2016

Hi,
I got following error when executing testing.php. Pls let me know whats causing this?

#!/usr/bin/env php
MTProto: Connecting to server...
MTProto: Loading RSA key...
MTProto: Initializing StructTools...
MTProto: Translating tl schemas...
MTProto: Generating permanent authorization key...
AuthKeyHandler: Requesting pq
CallHandler: Getting response (try number 1 for req_pq)...
PrimeModule: Trying to use the python factorization module
AuthKeyHandler: Factorization 3021788980811230517 = 1522725973 * 1984460129
AuthKeyHandler: Starting Diffie Hellman key exchange
CallHandler: Getting response (try number 1 for req_DH_params)...
AuthKeyHandler: Server-client time delta = -1.0 s
AuthKeyHandler: Executing dh_prime checks...
CallHandler: Getting response (try number 1 for set_client_DH_params)...
AuthKeyHandler: Diffie Hellman key exchange processed successfully
AuthKeyHandler: Auth key generated
MTProto: Generating temporary authorization key...
AuthKeyHandler: Requesting pq
CallHandler: Getting response (try number 1 for req_pq)...
PrimeModule: Trying to use the python factorization module
AuthKeyHandler: Factorization 2587613226443475283 = 1426789123 * 1813591921
AuthKeyHandler: Starting Diffie Hellman key exchange
CallHandler: Getting response (try number 1 for req_DH_params)...
AuthKeyHandler: Server-client time delta = 0.0 s
AuthKeyHandler: Executing dh_prime checks...
CallHandler: Getting response (try number 1 for set_client_DH_params)...
AuthKeyHandler: Diffie Hellman key exchange processed successfully
AuthKeyHandler: Auth key generated
MTProto: Writing client info...
CallHandler: Getting response (try number 1 for invokeWithLayer)...
ResponseHandler: Received container.
ResponseHandler: array (
0 =>
array (
'' => 'message',
'msg_id' => 6347854607584969729,
'seqno' => 1,
'bytes' => 28,
'body' =>
array (
'
' => 'new_session_created',
'first_msg_id' => 6347854602840027804,
'unique_id' => 5002409984457564783,
'server_salt' => 3196422576473308380,
),
),
1 =>
array (
'' => 'message',
'msg_id' => 6347854607585020929,
'seqno' => 2,
'bytes' => 20,
'body' =>
array (
'
' => 'msgs_ack',
'msg_ids' =>
array (
0 => 6347854602840027804,
),
),
),
)
ResponseHandler: new session created
ResponseHandler: array (
'' => 'new_session_created',
'first_msg_id' => 6347854602840027804,
'unique_id' => 5002409984457564783,
'server_salt' => 3196422576473308380,
)
CallHandler: Getting response (try number 2 for invokeWithLayer)...
MTProto: Current dc is 2, nearest dc is 2 in ID.
CallHandler: Getting response (try number 1 for auth.bindTempAuthKey)...
CallHandler: An error occurred while calling method auth.bindTempAuthKey: Received bad_msg_notification array (
'
' => 'bad_msg_notification',
'bad_msg_id' => 0,
'bad_msg_seqno' => 3,
'error_code' => 16,
) in ResponseHandler on line 44. Recreating connection and retrying to call method...
CallHandler: Getting response (try number 1 for auth.bindTempAuthKey)...
CallHandler: An error occurred while calling method auth.bindTempAuthKey: Received bad_msg_notification array (
'' => 'bad_msg_notification',
'bad_msg_id' => 0,
'bad_msg_seqno' => 5,
'error_code' => 16,
) in ResponseHandler on line 44. Recreating connection and retrying to call method...
CallHandler: Getting response (try number 1 for auth.bindTempAuthKey)...
CallHandler: An error occurred while calling method auth.bindTempAuthKey: Received bad_msg_notification array (
'
' => 'bad_msg_notification',
'bad_msg_id' => 0,
'bad_msg_seqno' => 7,
'error_code' => 16,
) in ResponseHandler on line 44. Recreating connection and retrying to call method...
CallHandler: Getting response (try number 1 for auth.bindTempAuthKey)...
CallHandler: An error occurred while calling method auth.bindTempAuthKey: Received bad_msg_notification array (
'' => 'bad_msg_notification',
'bad_msg_id' => 0,
'bad_msg_seqno' => 9,
'error_code' => 16,
) in ResponseHandler on line 44. Recreating connection and retrying to call method...
CallHandler: Getting response (try number 1 for auth.bindTempAuthKey)...
CallHandler: An error occurred while calling method auth.bindTempAuthKey: Received bad_msg_notification array (
'
' => 'bad_msg_notification',
'bad_msg_id' => 0,
'bad_msg_seqno' => 11,
'error_code' => 16,
) in ResponseHandler on line 44. Recreating connection and retrying to call method...

@danog
Copy link
Owner

danog commented Nov 1, 2016

This error is caused by a problem in the msgIdHandler module.
As I already wrote, this is a WIP, so stuff doesn't work properly atm.
You can help fix bugs though by browsing the issues of this project.

@danog
Copy link
Owner

danog commented Nov 18, 2016

Try with the latest release please.
In the meantime I'm closing this.

@danog danog closed this as completed Nov 18, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants