Skip to content

PHONE_NUMBER_OCCUPIED #41

@resuscitateocean

Description

@resuscitateocean

when i run the main method in Deepthought,I got the following error:

[9_12_2023_15:53:43] {INFO} DATABASEMANAGER - Current db version: 1
[9_12_2023_15:53:43] {INFO} KERNELMAIN - --------------KERNEL CREATED--------------
[9_12_2023_15:53:43] {WARNING} KernelPersistence - Loaded state in 1 ms
[9_12_2023_15:53:43] {SEVERE} KERNELCOMM - java.io.FileNotFoundException: \dev\urandom (系统找不到指定的路径。) at java.io.FileInputStream.open0(Native Method)
at java.io.FileInputStream.open(FileInputStream.java:195)
at java.io.FileInputStream.(FileInputStream.java:138)
at org.telegram.bot.kernel.KernelComm.(KernelComm.java:92)
at org.telegram.bot.kernel.TelegramBot.createKernelComm(TelegramBot.java:146)
at org.telegram.bot.kernel.TelegramBot.init(TelegramBot.java:95)
at org.telegram.Deepthought.main(Deepthought.java:57)

[9_12_2023_15:53:43] {INFO} KERNELMAIN - org.telegram.bot.kernel.KernelComm init in 6 ms
[9_12_2023_15:53:43] {INFO} KERNELMAIN - org.telegram.bot.kernel.KernelAuth init in 2 ms
[9_12_2023_15:53:43] {WARNING} TELEGRAMAPI - #1: Creating key
[9_12_2023_15:53:43] {INFO} KERNELMAIN - org.telegram.bot.kernel.KernelComm init in 97 ms
[9_12_2023_15:53:46] {WARNING} TELEGRAMAPI - mtproto#1002: onSessionCreated
[9_12_2023_15:53:47] {WARNING} TELEGRAMAPI - mtproto#1001: onSessionCreated
[9_12_2023_15:53:47] {INFO} KERNELAUTH - Loaded DC list
[9_12_2023_15:53:47] {INFO} KERNELAUTH - Sending code to phone xxx...
[9_12_2023_15:53:47] {WARNING} TELEGRAMAPI - auth.sendCode#86aef0ec
[9_12_2023_15:53:47] {SEVERE} TELEGRAMAPI - java.util.concurrent.ExecutionException: org.telegram.api.engine.RpcException: PHONE_MIGRATE_5 at java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:357)
at java.util.concurrent.CompletableFuture.get(CompletableFuture.java:1928)
at org.telegram.api.engine.TelegramApi.doRpcCall(TelegramApi.java:351)
at org.telegram.api.engine.TelegramApi.doRpcCallNonAuth(TelegramApi.java:529)
at org.telegram.api.engine.TelegramApi.doRpcCallNonAuth(TelegramApi.java:502)
at org.telegram.bot.kernel.KernelAuth.login(KernelAuth.java:145)
at org.telegram.bot.kernel.KernelAuth.start(KernelAuth.java:59)
at org.telegram.bot.kernel.TelegramBot.startKernelAuth(TelegramBot.java:132)
at org.telegram.bot.kernel.TelegramBot.init(TelegramBot.java:98)
at org.telegram.Deepthought.main(Deepthought.java:57)

[9_12_2023_15:53:47] {SEVERE} MTPROTO - java.lang.InterruptedException at java.lang.Object.wait(Native Method)
at org.telegram.mtproto.MTProto$SchedullerThread.run(MTProto.java:657)

[9_12_2023_15:53:47] {WARNING} TELEGRAMAPI - #5: Creating key
[9_12_2023_15:53:49] {WARNING} TELEGRAMAPI - mtproto#1003: onSessionCreated
[9_12_2023_15:53:49] {WARNING} TELEGRAMAPI - mtproto#1004: onSessionCreated
[9_12_2023_15:54:5] {INFO} KERNELAUTH - sent Code
[9_12_2023_15:54:5] {INFO} KERNELMAIN - org.telegram.bot.kernel.KernelAuth started in 21151 ms
[9_12_2023_15:54:5] {INFO} KERNELMAIN - org.telegram.bot.kernel.MainHandler init in 2 ms
[9_12_2023_15:54:5] {INFO} KERNELMAIN - ----------------BOT READY-----------------
[9_12_2023_15:54:5] {INFO} MAIN - enter your code here...
[9_12_2023_15:54:11] {WARNING} TELEGRAMAPI - auth.signUp#1b067634
[9_12_2023_15:54:11] {SEVERE} TELEGRAMAPI - java.util.concurrent.ExecutionException: org.telegram.api.engine.RpcException: PHONE_NUMBER_OCCUPIED at java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:357)
at java.util.concurrent.CompletableFuture.get(CompletableFuture.java:1928)
at org.telegram.api.engine.TelegramApi.doRpcCall(TelegramApi.java:351)
at org.telegram.api.engine.TelegramApi.doRpcCallNonAuth(TelegramApi.java:529)
at org.telegram.api.engine.TelegramApi.doRpcCallNonAuth(TelegramApi.java:502)
at org.telegram.bot.kernel.KernelAuth.setAuthCode(KernelAuth.java:104)
at org.telegram.Deepthought.main(Deepthought.java:61)

[9_12_2023_15:54:11] {SEVERE} KERNELAUTH - org.telegram.api.engine.RpcException: PHONE_NUMBER_OCCUPIED at org.telegram.api.engine.TelegramApi$2.onError(TelegramApi.java:345)
at org.telegram.api.engine.TelegramApi$ProtoCallback.onRpcError(TelegramApi.java:851)
at org.telegram.mtproto.MTProto.onMTProtoMessage(MTProto.java:375)
at org.telegram.mtproto.MTProto.onMTMessage(MTProto.java:255)
at org.telegram.mtproto.MTProto.access$1300(MTProto.java:44)
at org.telegram.mtproto.MTProto$ResponseProcessor.run(MTProto.java:754)

[9_12_2023_15:54:11] {SEVERE} MAIN - java.lang.Exception: Failed to log in: CODESENT at org.telegram.Deepthought.main(Deepthought.java:71)

[9_12_2023_15:54:35] {WARNING} TELEGRAMAPI - updates.getState#edd4882a
[9_12_2023_15:54:35] {SEVERE} TELEGRAMAPI - java.util.concurrent.TimeoutException at java.util.concurrent.CompletableFuture.timedGet(CompletableFuture.java:1784)
at java.util.concurrent.CompletableFuture.get(CompletableFuture.java:1928)
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)

[9_12_2023_15:54:35] {SEVERE} KERNELCOMM - java.util.concurrent.TimeoutException at java.util.concurrent.CompletableFuture.timedGet(CompletableFuture.java:1784)
at java.util.concurrent.CompletableFuture.get(CompletableFuture.java:1928)
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)

[9_12_2023_15:54:35] {SEVERE} KERNELHANDLER - Error getting updates state

My mobile phone number has been registered on both the mobile app and the desktop version of Telegram. After running the main method, I received the verification code on my desktop and entered the correct code in the console. I don't understand why I am getting an error message saying "PHONE_NUMBER_OCCUPIED". Can anyone help me?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions