-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: Cannot read properties of null (reading '1') #2885
Comments
same with me. please help to fix it, thanks |
Estou com o mesmo problema, será que é devido a alguma atualização? |
same here |
@hussam-aldarwish Sir, can you please expedite this ? |
TypeError: Cannot read properties of null (reading '1') |
Just take the corresponding raw version from GitHub, here they are: https://github.com/wppconnect-team/wa-version/tree/main/html when you already have it, (example: https://raw.githubusercontent.com/wppconnect-team/wa-version/main/html/2.2402.5-beta.html), in the launch arguments you should put it like this: const client: Client = new Client({
webVersionCache:
{
remotePath: 'URL PATH HERE',
type: 'remote'
}
}) |
Can you please tell me that which url i need to add in remotePath, And how can I get it? |
In this link are the wweb version lists, choose the one that corresponds with your version of whatsapp-web.js, you can try with 2.2402.5-beta.html, click on that file inside the given github repository list and click where it says raw, now copy the actual URL of the page and paste it in remoteAuth, it should work. something like this: const client = new Client({
webVersionCache:
{
remotePath: 'https://raw.githubusercontent.com/wppconnect-team/wa-version/main/html/2.2402.5-beta.html',
type: 'remote'
}
})
|
Is there an existing issue for this?
Describe the bug
I'm getting this TypeError when initializing the whatsapp client.
Expected behavior
It worked when I tried to skip local caching by directly return like the follwing
But whithout local cache file stored in /.wwebjs_cache
As a temporary workaround
Steps to Reproduce the Bug or Issue
I already have another bot which was working properly, but whenever the client is restarted I faced this error.
Relevant Code
whatsapp-web.js/src/webCache/LocalWebCache.js
Line 34 in 79f0563
Browser Type
Google Chrome
WhatsApp Account Type
WhatsApp Business
Does your WhatsApp account have multidevice enabled?
Yes, I am using Multi Device
Environment
await client.getWWebVersion()
Additional context
No response
The text was updated successfully, but these errors were encountered: