Baileys icon indicating copy to clipboard operation
Baileys copied to clipboard

[BUG] Error: Timed Out

Open makanSukros opened this issue 2 years ago • 15 comments

(node:460369) UnhandledPromiseRejectionWarning: Error: Timed Out at /home/botdev/node_modules/@adiwajshing/baileys/lib/Utils/generics.js:174:32 at runMicrotasks () at runNextTicks (internal/process/task_queues.js:60:5) at listOnTimeout (internal/timers.js:526:9) at processTimers (internal/timers.js:500:7) data: { stack: 'Error\n' + ' at promiseTimeout (/home/botdev/node_modules/@adiwajshing/baileys/lib/Utils/generics.js:169:19)\n' + ' at waitForMessage (/home/botdev/node_modules/@adiwajshing/baileys/lib/Socket/socket.js:101:61)\n' + ' at query (/home/botdev/node_modules/@adiwajshing/baileys/lib/Socket/socket.js:124:22)\n' + ' at /home/botdev/node_modules/@adiwajshing/baileys/lib/Socket/chats.js:285:38\n' + ' at runNextTicks (node:internal/process/task_queues:61:5)\n' + ' at processTimers (node:internal/timers:497:9)\n' + ' at async Object.transaction (/home/botdev/node_modules/@adiwajshing/baileys/lib/Utils/auth-utils.js:86:21)\n' + ' at async resyncAppState (/home/botdev/node_modules/@adiwajshing/baileys/lib/Socket/chats.js:251:9)\n' + ' at async resyncMainAppState (/home/botdev/node_modules/@adiwajshing/baileys/lib/Socket/chats.js:441:9)\n' + ' at async Timeout. (/home/botdev/node_modules/@adiwajshing/baileys/lib/Socket/chats.js:31:13)'

makanSukros avatar Jun 29 '22 04:06 makanSukros

I very often experience Request Time-out errors like this, even though the internet connection is very stable, has anyone experienced the same thing as this?

makanSukros avatar Jun 29 '22 04:06 makanSukros

I very often experience Request Time-out errors like this, even though the internet connection is very stable, has anyone experienced the same thing as this?

I also experienced it, but haven't found a solution until now

nastarrr avatar Jun 29 '22 12:06 nastarrr

I also have the same issue ,is there any option to get this in "connection.update"

vinayakvasu avatar Jul 01 '22 03:07 vinayakvasu

Error appears from: const { onMutation } = newAppStateChunkHandler(recvChats);

makanSukros avatar Jul 01 '22 07:07 makanSukros

I am facing the same issue, after logging in for the first time:

Error: Timed Out
    at /Users/user/Projects/b/Baileys/src/Utils/generics.ts:169:5 {
  data: {
    stack: 'Error\n' +
      '    at promiseTimeout (/Users/user/Projects/b/Baileys/src/Utils/generics.ts:163:16)\n' +
      '    at waitForMessage (/Users/user/Projects/b/Baileys/src/Socket/socket.ts:123:39)\n' +
      '    at query (/Users/user/Projects/b/Baileys/src/Socket/socket.ts:150:16)\n' +
      '    at getAvailablePreKeysOnServer (/Users/user/Projects/b/Baileys/src/Socket/socket.ts:205:24)\n' +
      '    at uploadPreKeysToServerIfRequired (/Users/user/Projects/b/Baileys/src/Socket/socket.ts:237:29)\n' +
      '    at WebSocket.<anonymous> (/Users/user/Projects/b/Baileys/src/Socket/socket.ts:489:9)\n' +
      '    at WebSocket.emit (node:events:527:28)\n' +
      '    at WebSocket.emit (node:domain:475:12)\n' +
      '    at /Users/user/Projects/b/Baileys/src/Socket/socket.ts:273:23\n' +
      '    at Object.decodeFrame (/Users/user/Projects/b/Baileys/src/Utils/noise-handler.ts:164:5)'
  },
  isBoom: true,
  isServer: false,
  output: {
    statusCode: 408,
    payload: {
      statusCode: 408,
      error: 'Request Time-out',
      message: 'Timed Out'
    },
    headers: {}
  }
}

tinyCoder32 avatar Jul 06 '22 20:07 tinyCoder32

This issue is stale because it has been open 6 days with no activity. Remove the stale label or comment or this will be closed in 2 days

github-actions[bot] avatar Jul 13 '22 03:07 github-actions[bot]

Having the same trouble

buzziss avatar Jul 13 '22 14:07 buzziss

Until now this error always appears every 10 minutes:

UnhandledPromiseRejectionWarning: Error: Timed Out

makanSukros avatar Jul 15 '22 02:07 makanSukros

This issue is stale because it has been open 6 days with no activity. Remove the stale label or comment or this will be closed in 2 days

github-actions[bot] avatar Jul 21 '22 03:07 github-actions[bot]

Still relevant

neves-gabriel avatar Jul 22 '22 18:07 neves-gabriel

This issue is stale because it has been open 6 days with no activity. Remove the stale label or comment or this will be closed in 2 days

github-actions[bot] avatar Jul 29 '22 03:07 github-actions[bot]

I have the same issue

morganzysman avatar Aug 01 '22 03:08 morganzysman

+1

13banda avatar Aug 01 '22 05:08 13banda

This issue is stale because it has been open 6 days with no activity. Remove the stale label or comment or this will be closed in 2 days

github-actions[bot] avatar Aug 08 '22 03:08 github-actions[bot]

Still relevant

neves-gabriel avatar Aug 08 '22 13:08 neves-gabriel

whatsapp server at certain times there is a restart session and it is done every day. this is a sample log on the bailyes library and whatsapp-web.js image if you want to use the baileys library, look at this repo, there is already an auto restart when the whatsapp session is disconnected https://github.com/ade566/wa-baileys

diazzaid avatar Aug 09 '22 03:08 diazzaid

This issue is stale because it has been open 6 days with no activity. Remove the stale label or comment or this will be closed in 2 days

github-actions[bot] avatar Aug 16 '22 03:08 github-actions[bot]