Skip to content
This repository has been archived by the owner on Apr 23, 2024. It is now read-only.

Auth key dulicated #244

Closed
mgilangjanuar opened this issue Feb 2, 2022 · 3 comments
Closed

Auth key dulicated #244

mgilangjanuar opened this issue Feb 2, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@mgilangjanuar
Copy link
Owner

mgilangjanuar commented Feb 2, 2022

Describe the bug
Got an error AUTH_KEY_DUPLICATED

To Reproduce
Steps to reproduce the behavior:

  1. Login
  2. Wait for at least 24h
  3. Hit /users/me endpoint

Expected behavior
No error

Screenshots

{
  "error": "406: AUTH_KEY_DUPLICATED (caused by InvokeWithLayer)",
  "details": {
    "code": 406,
    "errorMessage": "AUTH_KEY_DUPLICATED",
    "name": "RPCError",
    "message": "406: AUTH_KEY_DUPLICATED (caused by InvokeWithLayer)",
    "stack": "RPCError: 406: AUTH_KEY_DUPLICATED (caused by InvokeWithLayer)\n    at RPCMessageToError (/root/teledrive/node_modules/@mgilangjanuar/gramjs/errors/index.ts:23:12)\n    at MTProtoSender._handleRPCResult (/root/teledrive/node_modules/@mgilangjanuar/gramjs/network/MTProtoSender.ts:655:44)\n    at MTProtoSender._processMessage (/root/teledrive/node_modules/@mgilangjanuar/gramjs/network/MTProtoSender.ts:570:15)\n    at runMicrotasks (<anonymous>)\n    at processTicksAndRejections (node:internal/process/task_queues:96:5)\n    at MTProtoSender._recvLoop (/root/teledrive/node_modules/@mgilangjanuar/gramjs/network/MTProtoSender.ts:543:17)"
  }
}
RPCError: 406: AUTH_KEY_DUPLICATED (caused by InvokeWithLayer)
    at RPCMessageToError (/root/teledrive/node_modules/@mgilangjanuar/gramjs/errors/index.ts:23:12)
    at MTProtoSender._handleRPCResult (/root/teledrive/node_modules/@mgilangjanuar/gramjs/network/MTProtoSender.ts:655:44)
    at MTProtoSender._processMessage (/root/teledrive/node_modules/@mgilangjanuar/gramjs/network/MTProtoSender.ts:570:15)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at MTProtoSender._recvLoop (/root/teledrive/node_modules/@mgilangjanuar/gramjs/network/MTProtoSender.ts:543:17)"

Desktop (please complete the following information):

  • All

Smartphone (please complete the following information):

  • All

Additional context

Related issue: #238

@mgilangjanuar mgilangjanuar added the bug Something isn't working label Feb 2, 2022
@mgilangjanuar
Copy link
Owner Author

Related issue: gram-js/gramjs#189

@mgilangjanuar
Copy link
Owner Author

Hypothesis: running multiple servers with different IP

Proofing: SG servers only have 1 server from 2022-02-03T08:18:20+7Z

@mgilangjanuar
Copy link
Owner Author

mgilangjanuar commented Feb 3, 2022

Experiment: setup NAT gateway in multiple server (SG)

updated to all regions: SG, GE, US

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant