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

UnhandledException: TypeError: Cannot read properties of undefined (reading 'initMapInstance') #117

Open
ayaka14732 opened this issue May 11, 2023 · 4 comments

Comments

@ayaka14732
Copy link
Sponsor

ayaka14732 commented May 11, 2023

使用最新的 commit 279b05e 出現報錯:

Prisma schema loaded from nix/store/j7rii50cfb9ba9mrixy511335x56niad-q2tg/libexec/q2tg/node_modules/.prisma/client/schema.prisma
Datasource "db": PostgreSQL database "q2tg-data", schema "public" at "127.0.0.1:5432"

⚠  There might be data loss when applying the changes:

  • You are about to drop the column `qqPassword` on the `Instance` table, which still contains 1 non-null values.
  • You are about to drop the column `qqPlatform` on the `Instance` table, which still contains 1 non-null values.
  • You are about to drop the column `qqUin` on the `Instance` table, which still contains 1 non-null values.
  • You are about to drop the column `name` on the `Session` table, which still contains 2 non-null values.


🚀  Your database is now in sync with your Prisma schema. Done in 4.23s

[LOG] Emoji versions: 0.6, 0.7, 1.0, 2.0, 3.0, 4.0, 5.0, 11.0, 12.0, 12.1, 13.0, 13.1, 14.0, esq.latest, nfq.latest, xdd.latest
[LOG] EmojiDB loaded 4828 entries.
[LOG] Emoji versions: 0.6, 0.7, 1.0, 2.0, 3.0, 4.0, 5.0, 11.0, 12.0, 12.1, 13.0, 13.1, 14.0, esq.latest, nfq.latest, xdd.latest
[LOG] EmojiDB loaded 4828 entries.
[2023-05-11T14:22:19.455] [DEBUG] Instance - 0 - 正在登录 TG Bot
[2023-05-11T14:22:19.458] [INFO] - [Running gramJS version 2.15.8]
[2023-05-11T14:22:19.458] [DEBUG] TelegramSession - undefined - Session 不存在,创建[2023-05-11T14:22:27.208] [INFO] Instance - 0 - TG Bot 登录完成[2023-05-11T14:22:27.208] [DEBUG] Instance - 0 - 正在登录 TG UserBot
[2023-05-11T14:22:27.209] [INFO] - [Running gramJS version 2.15.8]
[2023-05-11T14:22:27.209] [DEBUG] TelegramSession - null - Session 不存在,创建[2023-05-11T14:22:29.918] [ERROR] Main - UnhandledException:  RPCError: 401: AUTH_KEY_UNREGISTERED (caused by users.GetUsers)
    at RPCMessageToError (/nix/store/j7rii50cfb9ba9mrixy511335x56niad-q2tg/libexec/q2tg/node_modules/telegram/errors/index.js:28:12)
    at MTProtoSender._handleRPCResult (/nix/store/j7rii50cfb9ba9mrixy511335x56niad-q2tg/libexec/q2tg/node_modules/telegram/network/MTProtoSender.js:517:58)
    at MTProtoSender._processMessage (/nix/store/j7rii50cfb9ba9mrixy511335x56niad-q2tg/libexec/q2tg/node_modules/telegram/network/MTProtoSender.js:442:15)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async MTProtoSender._recvLoop (/nix/store/j7rii50cfb9ba9mrixy511335x56niad-q2tg/libexec/q2tg/node_modules/telegram/network/MTProtoSender.js:418:17) {
  code: 401,
  errorMessage: 'AUTH_KEY_UNREGISTERED'
}
[2023-05-11T14:22:42.213] [INFO] Main - 开始加载 MapInstance
[2023-05-11T14:22:42.214] [ERROR] Main - UnhandledException:  TypeError: Cannot read properties of undefined (reading 'initMapInstance')
    at Timeout._onTimeout (/nix/store/j7rii50cfb9ba9mrixy511335x56niad-q2tg/libexec/q2tg/build/index.js:35:41)
    at listOnTimeout (node:internal/timers:564:17)
    at process.processTimers (node:internal/timers:507:7)
@yanshibin
Copy link

遇到同样的问题,请问你怎么解决的

@ayaka14732
Copy link
Sponsor Author

是沒有解決,已經無法使用了

@clansty
Copy link
Owner

clansty commented Aug 22, 2023 via email

@clansty
Copy link
Owner

clansty commented Aug 22, 2023 via email

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

3 participants