evolution-api
evolution-api copied to clipboard
[BUG]
📋 Bug Description
device_removed log out session
🔄 Steps to Reproduce
The error occurs when I scan the WhatsApp QR code and it gets stuck on "logging in".
✅ Expected Behavior
log in to the device
❌ Actual Behavior
The session connects and then disconnects.
🌍 Environment
- OS: [e.g. Ubuntu 20.04]
- Node.js version: [e.g. 18.17.0]
- Evolution API version: [e.g. 2.3.6]
- Database: [e.g. PostgreSQL 14, MySQL 8.0]
- Connection type: [e.g. Baileys]
📋 Logs
{"level":50,"time":1762479372822,"pid":163,"hostname":"18bfac43a915","node":{"tag":"stream:error","attrs":{"code":"515"}},"msg":"stream errored out"}
[Evolution API] [finder] v2.2.2 163 - Thu Nov 06 2025 22:36:12 INFO [ChannelStartupService] [string] Browser: Evolution API,Chrome,5.15.0-69-generic
[Evolution API] [finder] v2.2.2 163 - Thu Nov 06 2025 22:36:12 INFO [ChannelStartupService] [string] Baileys version: 2,3000,1027934701
[Evolution API] [finder] v2.2.2 163 - Thu Nov 06 2025 22:36:12 INFO [ChannelStartupService] [string] Group Ignore: false
[Evolution API] [finder] v2.2.2 163 - Thu Nov 06 2025 22:36:15 INFO [ChannelStartupService] [string]
┌──────────────────────────────┐
│ CONNECTED TO WHATSAPP │
└──────────────────────────────┘
[Evolution API] [finder] v2.2.2 163 - Thu Nov 06 2025 22:36:15 INFO [ChannelStartupService] [string]
wuid: 59162317933
name: finder
Closing open session in favor of incoming prekey bundle
Closing session: SessionEntry {
_chains: {
'Bd1y/Wsm1JZpl8L93563opucAYHvfgqwOTpdPCiJ/7c7': { chainKey: [Object], chainType: 2, messageKeys: {} },
'BUH0WPPSGeWgcDm0NBLtN2vh/+4PAWUEl4HJ7/NgVqR/': { chainKey: [Object], chainType: 1, messageKeys: {} }
},
registrationId: 1959496589,
currentRatchet: {
ephemeralKeyPair: {
pubKey: <Buffer 05 41 f4 58 f3 d2 19 e5 a0 70 39 b4 34 12 ed 37 6b e1 ff ee 0f 01 65 04 97 81 c9 ef f3 60 56 a4 7f>,
privKey: <Buffer 48 49 cd 77 71 4c 46 07 fe 3b c4 b6 99 07 3b 56 cf 8e 94 f6 b5 f8 8a 0d a3 b9 04 2f 91 5e 25 78>
},
lastRemoteEphemeralKey: <Buffer 05 dd 72 fd 6b 26 d4 96 69 97 c2 fd df 9e b7 a2 9b 9c 01 81 ef 7e 0a b0 39 3a 5d 3c 28 89 ff b7 3b>,
previousCounter: 0,
rootKey: <Buffer 59 c3 d2 30 51 70 76 2f b8 42 89 a3 f2 0d ff 26 84 6d 3c 3d 94 34 e5 06 0f 2c 8c c6 32 97 56 0f>
},
indexInfo: {
baseKey: <Buffer 05 4f b9 21 87 a0 34 0f 9e 0f bf ef e5 a1 7b 33 e7 c1 b1 c8 6e a4 b7 e2 df 3e a6 96 a6 b6 01 23 3b>,
baseKeyType: 2,
closed: -1,
used: 1762479021518,
created: 1762479021518,
remoteIdentityKey: <Buffer 05 9d b4 63 cc 89 ae f6 06 17 0a 5a 1b dd 80 c4 f5 08 c7 4e 7d 0f 16 cd ae 6e 30 81 16 2d b4 ae 70>
}
}
{"level":50,"time":1762479379343,"pid":163,"hostname":"18bfac43a915","error":{"data":404,"isBoom":true,"isServer":true,"output":{"statusCode":500,"payload":{"statusCode":500,"error":"Internal Server Error","message":"An internal server error occurred"},"headers":{}}},"node":{"tag":"message","attrs":{"from":"[email protected]","type":"text","id":"A5758A367954B36BBC4A4921917441BF","verified_name":"1696156201354676880","verified_level":"unknown","category":"peer","t":"1762479378"},"content":[{"tag":"meta","attrs":{"appdata":"default"}},{"tag":"verified_name","attrs":{"v":"1","verified_level":"unknown"},"content":{"type":"Buffer","data":[10,26,8,144,149,201,202,193,162,253,196,23,18,6,115,109,98,58,119,97,34,6,70,105,110,100,101,114,18,64,85,46,76,124,19,195,125,191,22,231,168,79,254,57,225,234,102,131,129,37,161,199,85,205,2,137,16,174,74,146,239,216,255,24,102,79,241,249,168,111,85,194,250,251,28,56,1,216,237,127,186,14,105,156,64,139,142,98,17,129,78,221,249,11]}},{"tag":"enc","attrs":{"v":"2","type":"pkmsg"},"content":{"type":"Buffer","data":[51,8,9,18,33,5,224,215,158,69,230,20,255,150,88,111,23,124,211,93,141,25,107,40,33,158,169,97,136,119,169,123,255,147,91,72,77,22,26,33,5,157,180,99,204,137,174,246,6,23,10,90,27,221,128,196,245,8,199,78,125,15,22,205,174,110,48,129,22,45,180,174,112,34,146,1,51,10,33,5,103,241,166,112,15,22,206,230,241,251,37,28,201,112,87,223,110,122,195,108,212,215,225,106,91,99,72,159,188,3,164,91,16,3,24,0,34,96,192,88,181,20,166,67,159,191,79,37,243,204,162,193,175,30,156,99,164,139,122,87,169,75,162,242,249,88,109,112,11,254,172,109,194,26,218,139,198,57,149,5,210,55,109,59,140,218,53,242,65,101,234,178,28,170,60,35,198,203,239,107,8,95,46,124,125,220,101,159,234,153,159,214,30,96,178,193,110,107,122,196,116,11,47,189,102,52,170,82,15,79,165,74,136,178,145,192,152,64,91,65,99,238,40,141,151,174,166,7,48,1]}}]},"msg":"error in handling message"}
{"level":50,"time":1762479436241,"pid":163,"hostname":"18bfac43a915","node":{"tag":"stream:error","attrs":{"code":"401"},"content":[{"tag":"conflict","attrs":{"type":"device_removed"}}]},"msg":"stream errored out"}
[Evolution API] v2.2.2 163 - Thu Nov 06 2025 22:37:16 WARN [WAMonitoringService] [string] Instance "finder" - LOGOUT
📝 Additional Context
No response