Cloudkibo / KiboPush

0 stars 1 forks source link

Cannot read property 'toLowerCase' of undefined #10760

Closed arveenkumar55 closed 3 years ago

arveenkumar55 commented 3 years ago

Title Cannot read property 'toLowerCase' of undefined

Sentry StackTrace and Sentry Link https://sentry.io/organizations/cloudkibo/issues/2114915952/?project=292307&referrer=slack

Events: 1

Users: 0

Last Seen: 1 hours ago

First Seen: 1 hours ago

Environment: production Server_Name: Kibochat Page Name: Test3

Subscriber Name: Arveen Kumar

User Name: bjafri5@gmail.com

IP:

Front End or Backend End issue? Backend Additional Data There were no paper trails logs on paper trail test

papertrail image

sentry-io[bot] commented 3 years ago

Sentry issue: KIBOPUSH-2ZH

arveenkumar55 commented 3 years ago

Root Cause: This was happening because if the commerce chatbot is active and we send messages from messenger other than text to this page we will get this error.

Identify the commit and developer who is responsible for that change. (Issue number, pull request) Pull Request:https://github.com/Cloudkibo/KiboChat/pull/1110 Issue number: https://github.com/Cloudkibo/KiboPush/issues/10032

What is the way that we can ensure that this code doesn’t break again? added null check.

arveenkumar55 commented 3 years ago

@saniasiddiqui please test on staging

arveenkumar55 commented 3 years ago

@saniasiddiqui please test on production