-
-
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
data.id.id.substring is not a function #2211
Comments
I have the same problem. help |
I'm having this problem too |
@AdrianoRobson @minnigagustin @Eonus Open this file: \node_modules\whatsapp-web.js\src\structures\Message.js Go to line 91 and change this: for this: WhatsApp Web updated something that made that line stop working, but using this code it worked for me again. |
@MasterMarques @Eonus @AdrianoRobson @minnigagustin @tegila Probe la solución de MasterMarques y así no da error, pero el mensaje no se manda, queda pendiente de envio. Lo que veo es que en la respuesta del metodo sendMessage, el objeto id retorna una promesa sin resolver. Probe abrir la ventana con chrome y mandarlo manualmente tipeando el mensaje y enviando, y este objeto si responde con el id resuelto. |
esto no envia el mensaje. @MasterMarques |
After changed the line 91 i sent a message but doenst appear. |
Take a look the Chrome Dev Tools, you will see a: DuplicateMessageError |
Consider the solution at #2196 https://github.com/pedroslopez/whatsapp-web.js/pull/2196/files |
I'm having the same issue. Sometimes the message is sent, but sometimes this error occurs. I tried to replace the Edit: open this link https://github.com/pedroslopez/whatsapp-web.js/pull/2196/files and change both files are there. Thanks for the guys who bring to us the solution. |
Works! |
Do I need to update my dependencies to work here? |
Com isso vcs conseguem ajustar, fiz aqui e funcionou |
Também fiz no localhost e funcionou, mas eu tenho 6 instancias online e teria que fazer manualmente em todas. Quando vai vim uma solução diretamente no npm install? |
Se vc usa multi sessão amigo não precisa fazer em cada, aqui tenho 90 instancias online e fiz so no codigo e ja rodou normal pra todas |
thank you! you're the best |
Hello Claudio, excuse me, but I have a question, how are you running your 6 instances online? are you using aws or what service? |
funciona !!!! .... |
Same problem here: /Users/miguels/Documents/Projects/whatsapp-chatgpt/node_modules/whatsapp-web.js/src/structures/Message.js:91 TypeError: data.id.id.substring is not a function nmp install doesn't solve.. |
Why is such a clear error not checked before pushing new changes? This should've been tested and detected way before this point |
this only happend yesterday to me, not happend before ...i supone that the issue happend in whatsapp not in the module ... but .. with the modification informed the problem is fixed ...and ver quickly .. :D |
Entiendo que esto es un hotfix https://github.com/pedroslopez/whatsapp-web.js/pull/2196/files pero lo unico que soluciona es que no me rompa la aplicación, los mensajes siguen sin enviarse es correcto? o a alguien le soluciono la parte del envío? |
Works perfectly, used https://www.npmjs.com/package/patch-package to apply the patch |
English: Both changes need to be made! If one of these files is missing I'd suggest to delete the node_modules folder and run Spanish: Ambos cambios son necesarios. Si uno de los archivos no está presente, te sugiero eliminar la carpeta de node_modules y ejecutar |
Sometimes WhatsApp makes these changes. I didn't update to the last version and found the same error. Maybe that's the case. |
Gracias @totallynotdavid hasta el momento solo intente remover la carpeta node_modules intentare tambien eliminar la carpeta de la sesion |
ojo .. eso de eliminar las carpetas de sesiones no es necesario ... por lo menos yo no las he tocado y después de hacer el hotfix ...todo volvió a la normalidad .. enviando y recibiendo ... |
its work |
Same error with me |
Hello, in addition to the code change, it worked for me deleting .wwebjs_auth, now it works perfect! Thanks to all for the help!!! |
Thanks a lot, this worked for me |
I using contabo to run all instances |
@claudiocassimiro Thank you very much, but you use only one vps and how much ram memory? What happens is that I have a vps in aws light with a processor and a 1 gb of ram and only let me use an instance! |
it Worked 💯 |
instead of changing the files manually, you can always install the package from the github instead of from the npm
|
Fiz a instalação usando npm install https://github.com/pedroslopez/whatsapp-web.js |
Amigo, botões até o momento, o whatsapp removeu das api não oficiais |
Que saco, agora eles tornaram tudo mais chato ainda.. Séra que existe uma plataforma que dê isso de graça? |
Plataforma gratuita desconheço, mas da pra você fazer de varias maneiras seu bot amigo, ou com opções númericas, o criar um esquema de gerenciamento de intenções, em node tem até um npm que ajuda nisso, podendo integrar com IA ficará melhor ainda. |
Pelo visto, acho melhor trabalhar com opções numéricas, Valeu pela ajuda... |
Yes this works. Thanks for the solution. |
Com a whatsapp-web.js não tem como evitar amigo pois como ela roda em cima do whatsapp web, se houver atualização no w-web vai afetar a lib, ja vi varios falando que tem como, e todas que tentei nenhuma deu certo. |
Alright thanks. This solution mentioned above seemed to just work temporarily. Now messages are not sending again for me, but there isn't any error in the terminal. Anyone experiencing this? |
Thank you Soo Soo Much Now It's Working Fine |
con estas intrucciones |
prueba con esto |
Same error... but fixed
I didn't modified any files, just updated dependencies and restart app. |
Thanks! Works for me, 1 instance in NodeJS + Digital Ocean + Ubuntu |
https://github.com/pedroslopez/whatsapp-web.js/pull/2196/files |
I just did the first step and it worked. |
funcionou pra mim... |
Is there an existing issue for this?
Describe the bug
Today I started receiving this error on many connected accoubts
Expected behavior
Message needs to be sended
Steps to Reproduce the Bug or Issue
Relevant Code
No response
Browser Type
Chromium
WhatsApp Account Type
Standard
Does your WhatsApp account have multidevice enabled?
Yes, I am using Multi Device
Environment
Node v16
WWEb latest
Additional context
No response
The text was updated successfully, but these errors were encountered: