Skip to content
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

Handle optional chaining for 'settings.msg_call', this change prevent… #197

Merged
merged 1 commit into from
Nov 5, 2023

Conversation

vitorogen
Copy link
Contributor

I encountered a runtime error due to 'settings.msg_call' being potentially undefined, leading to crashes.

origin: Promise { <rejected> TypeError: Cannot read properties of undefined (reading 'trim') at WAStartupService.<anonymous> (/evolution/dist/src/whatsapp/services/whatsapp.service.js:1477:96) at Generator.next (<anonymous>) at fulfilled (/evolution/dist/src/whatsapp/services/whatsapp.service.js:28:58) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) }, � stderr: 2, error: TypeError: Cannot read properties of undefined (reading 'trim') at WAStartupService.<anonymous> (/evolution/dist/src/whatsapp/services/whatsapp.service.js:1477:96) at Generator.next (<anonymous>) at fulfilled (/evolution/dist/src/whatsapp/services/whatsapp.service.js:28:58) at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

…s 'TypeError: Cannot read properties of undefined' errors when 'msg_call' is undefined.
@DavidsonGomes DavidsonGomes merged commit 2bd111f into EvolutionAPI:develop Nov 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants