After few months of using, I just realized this few weeks ago. As title.
Steps taken: (Same bot)
- Kicked bot out from DC server.
- Removed all bot storage and setting files.
- Reset bot token in DC Developer portal.
- Restart bot > Reinvited > set all the parameters including whitelist and oneway disabled.
- No luck.
(Decided to create a new bot)
- Kicked old bot out from DC server.
- Removed all bot storage and setting files.
- Create new bot in DC Developer portal.
- Start new bot > Reinvite > set all the parameters including whitelist and oneway disabled.
- No luck.
=============
Anyone out there encounter this ? or is there any idea for me to try out? Thank you.
Not sure if these help, attached the bot log files during startup below.
Thanks.
These are the lines from bot running.
Bot is now running. Press CTRL-C to exit.
<ref *1> Message {
channelId: '<some channel ID>',
guildId: '',
id: '',
position: null,
createdTimestamp: 1750072927302,
type: 'DEFAULT',
system: false,
content: 'WhatsApp connection successfully opened!',
author: ClientUser {
id: '',
bot: true,
system: false,
flags: UserFlags { bitfield: 0 },
username: '',
globalName: null,
discriminator: '1062',
avatar: 'b7c54aa012bde5d6cd46911ad39b1ba4',
banner: undefined,
accentColor: undefined,
avatarDecoration: null,
verified: true,
mfaEnabled: true
},
pinned: false,
tts: false,
nonce: null,
embeds: [],
components: [],
attachments: Collection(0) [Map] {},
stickers: Collection(0) [Map] {},
editedTimestamp: null,
reactions: ReactionManager { message: [Circular *1] },
mentions: MessageMentions {
everyone: false,
users: Collection(0) [Map] {},
roles: Collection(0) [Map] {},
_members: null,
_channels: null,
_parsedUsers: null,
crosspostedChannels: Collection(0) [Map] {},
repliedUser: null
},
webhookId: null,
groupActivityApplication: null,
applicationId: null,
activity: null,
flags: MessageFlags { bitfield: 0 },
reference: null,
interaction: null
}
===================
These are the start up logs:
{"level":30,"time":1750072923530,"pid":1000349,"hostname":"","version":"v0.10.28","msg":"Starting"}
{"level":30,"time":1750072923987,"pid":1000349,"hostname":"","version":"v0.10.28","msg":"Update checked."}
{"level":30,"time":1750072923987,"pid":1000349,"hostname":"","version":"v0.10.28","msg":"Conversion completed."}
{"level":30,"time":1750072923993,"pid":1000349,"hostname":"","version":"v0.10.28","msg":"Loaded settings."}
{"level":30,"time":1750072923993,"pid":1000349,"hostname":"","version":"v0.10.28","msg":"Changed auto save interval."}
{"level":30,"time":1750072924013,"pid":1000349,"hostname":"","version":"v0.10.28","msg":"Loaded contacts."}
{"level":30,"time":1750072924014,"pid":1000349,"hostname":"","version":"v0.10.28","msg":"Loaded chats."}
{"level":30,"time":1750072924014,"pid":1000349,"hostname":"","version":"v0.10.28","msg":"Loaded last messages."}
{"level":30,"time":1750072925026,"pid":1000349,"hostname":"","version":"v0.10.28","msg":"Discord client started."}
{"level":30,"time":1750072926020,"pid":1000349,"hostname":"","version":"v0.10.28","msg":"Repaired channels."}
{"level":30,"time":1750072926064,"pid":1000349,"hostname":"","version":"v0.10.28","msg":"WhatsApp client started."}
{"level":30,"time":1750072926241,"pid":1000349,"hostname":"","version":"v0.10.28","browser":["Firefox (Linux)","",""],"helloMsg":{"clientHello":{"ephemeral":""}},"msg":"connected to WA"}
{"level":30,"time":1750072926416,"pid":1000349,"hostname":"","version":"v0.10.28","node":{"username":"","passive":true,"userAgent":{"platform":"WEB","appVersion":{"primary":2,"secondary":3000,"tertiary":1023223821},"mcc":"000","mnc":"000","osVersion":"0.1","manufacturer":"","device":"Desktop","osBuildNumber":"0.1","releaseChannel":"RELEASE","localeLanguageIso6391":"en","localeCountryIso31661Alpha2":"US"},"webInfo":{"webSubPlatform":"WEB_BROWSER"},"connectType":"WIFI_UNKNOWN","connectReason":"USER_ACTIVATED","device":34},"msg":"logging in..."}
{"level":30,"time":1750072926866,"pid":1000349,"hostname":"","version":"v0.10.28","msg":"20 pre-keys found on server"}
{"level":30,"time":1750072927029,"pid":1000349,"hostname":"","version":"v0.10.28","msg":"opened connection to WA"}
{"level":30,"time":1750072927072,"pid":1000349,"hostname":"","version":"v0.10.28","msg":"handled 0 offline messages/notifications"}
Attached latest test logs, after some testing, realized that:
-
Everything works fine when msging between contacts (non-group). Msgs are sent normally.
-
Testing by sending msgs from creating new group/some existing groups :
WA->DC = 👍 working , no problem
DC-> WA = ⛔ not working, msg not sent and bot crashed with error msg (No session).
===============================
{"level":50,"time":1750146567089,"pid":1006203,"hostname":"","version":"v0.10.28","err":{"type":"SessionError","message":"No sessions","stack":"SessionError: No sessions\n at 61847646515264.35 [as awaitable] (/snapshot/WhatsAppToDiscord/out.js)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async _asyncQueueExecutor (/snapshot/WhatsAppToDiscord/out.js)","name":"SessionError"},"msg":"No sessions"}
{"level":30,"time":1750146567090,"pid":1006203,"hostname":"","version":"v0.10.28","msg":"Exiting!"}