rubenlagus / Deepthought

Telegram Client written in Java to support multiple custom implementations
74 stars 41 forks source link

Timeout Exception after authentication #29

Open WOLFI3654 opened 7 years ago

WOLFI3654 commented 7 years ago

Hello, I'm trying to run the Deepthought echo example but after I input my auth code into my console something is going wrong and I get an TimeoutException `Aug 18, 2017 2:16:01 PM org.telegram.bot.services.BotLogger warning WARNING: [TELEGRAMAPI] auth.signIn#bcd51581 Aug 18, 2017 2:16:23 PM org.telegram.bot.services.BotLogger warning WARNING: [TELEGRAMAPI] updates.getState#edd4882a Aug 18, 2017 2:16:23 PM org.telegram.bot.services.BotLogger log SEVERE: KERNELCOMM java.util.concurrent.TimeoutException at java.util.concurrent.CompletableFuture.timedGet(CompletableFuture.java:1771) at java.util.concurrent.CompletableFuture.get(CompletableFuture.java:1915) at org.telegram.api.engine.TelegramApi.doRpcCall(TelegramApi.java:351) at org.telegram.api.engine.TelegramApi.doRpcCall(TelegramApi.java:326) at org.telegram.api.engine.TelegramApi.doRpcCall(TelegramApi.java:439) at org.telegram.api.engine.TelegramApi.doRpcCall(TelegramApi.java:426) at org.telegram.bot.kernel.KernelComm.lambda$doRpcCallSync$0(KernelComm.java:172) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748)

Aug 18, 2017 2:16:23 PM org.telegram.bot.services.BotLogger severe SEVERE: [KERNELHANDLER] Error getting updates state `

Have I configured something wrong? (I have fixed linux random btw)

pmouraguedes commented 6 years ago

+1 I am getting exactly that and also used the linux random workaround. After receiving the auth code it gets a timeout. Tested on a Ubuntu 16.04 box.

pmouraguedes commented 6 years ago

Hi again,

The program expects the auth code to be given as input in your console. After doing that I could successfully run it!

fengyaojieTTT commented 6 years ago

I also encountered this problem I don't know how to do! Have you solved it yet? I tried setting up the JVM entropy pool, and it didn't seem to work for me at all! You'd better try it
Can you tell me your solution?

WOLFI3654 commented 6 years ago

@fengyaojie I remember something with the 2FA. I think I had to disable it or something like that. But not sure

fengyaojieTTT commented 6 years ago

@WOLFI3654 You still remember the specific code of operation friends can say a little bit more clearly how I should do it! Thank you!