-
Notifications
You must be signed in to change notification settings - Fork 25
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
Uncaught Exception: Timeout waiting for response #26
Comments
@merlinkory And other methods before authentication without timeout? It's a bit strange. Hard to answer. Can you give some output of your scripts? |
For following code:
output is
and for following code:
output is
api key & hash and phone number i changed to xxx I think problem related with Failed to parse [request:{\0042@extra\0042:1681692777,\0042@type\0042:\0042setAuthenticationPhoneNumber \0042,\0042phone_number\0042:\0042+xxx\0042}] [Error : 0 : Unknown class] |
Hi, @merlinkory Please, check if the phone number has valid format. It should contain only digits, there should be no And check if the telegram services are blocked in your country. If you use proxy in your default Telegram client, then you have to use proxy when you are using tdlib:
|
Hi @maxvgi Also i tried edit timeout in $client->query($query,XX); |
I've solved it.
It is silly mistake
|
@merlinkory did you solve the problem? |
@maxvgi yes in case if i doing folliwing:
but example from your documentation is not work |
@merlinkory need check and fix. When have more time. For now please use |
@yaroslavche Yes i understood it. I've using "query" for any call. |
I have faced this problem in one of my projects just now. The
|
BTW, me too =) Few days ago. But I don't even think about this issue. Now I understand. I set default timeout 1 second (btw as I can remember - can't pass float as timeout, maybe I'm wrong). And i just increase timeout arg in |
@yaroslavche |
I try using library as in your example, but always getting exception "Timeout waiting for response" on line $client->setAuthenticationPhoneNumber($phone_number); or in other case $query = json_encode(['@type' =>'setAuthenticationPhoneNumber ','phone_number' => 'xxx']); $result = $client->query($query, 10);
Could you tell, how can resolve it?
Thank you
The text was updated successfully, but these errors were encountered: