Closed siddiquiaffan closed 2 years ago
I have a feeling this is related to wapi being injected way too early
Might need to reimplement ripe session detection
https://docs.openwa.dev/interfaces/api_model_config.ConfigObject.html#waitForRipeSession
Using waitForRipeSession
can reduce this issue?
And yeah it's WAPI
issue cuz once I got error something like WAPI undefined
So what I need to do basically to solve this issue?
I have a feeling this is related to wapi being injected way too early Might need to reimplement ripe session detection https://docs.openwa.dev/interfaces/api_model_config.ConfigObject.html#waitForRipeSession
Any updates?
@github-actions run
@AffanTheBest update to the latest version and try again thanks
@AffanTheBest to be honest I am unable to replicate this locally. Please add more context to this issue + try to replicate it locally with the easy api.
It's still throwing same error. Even on my local machine.
See below SS:
@AffanTheBest
npx @open-wa/wa-automate --headful
/refresh
endpoint.Nope I didn't get any error when used api
@AffanTheBest ok then it seems to be related to your implementation.
Please add more context (e.g the config) to this issue.
When you add the necessary context to replicate, I will reopen the issue
This is fixed in 4.23.17
thanks
Woah thanks!
Are you using the latest version of the library?
Current Behavior
I'm trying to refresh my client using client.refresh() but it's not working and throwing some error.
The error I got is:
Expected Behavior
It should refresh the client.
Steps To Reproduce
In my project there are two bots working simultaneously. i) WhatsApp Bot (wa-automate-nodejs) ii) Telegram Bot( gramjs)
I've added a command to to telegram bot named
/restart
to refresh the client. When user hits the/retsart
command a function namedrestart
is called.Restart Function:
Mode
My own code
create() code
DEBUG INFO
Environment
Screenshots
No response
Anything else?
No response