Infrequent error: "Cannot read properties of undefined (reading 'replace')"
allanbreyes opened this issue · 2 comments
allanbreyes commented
Hi, team! We infrequently receive an error, maybe ~1-5% of the time:
Error: Cannot read properties of undefined (reading 'replace')
There's only 3 places in the codebase that call .replace
, and I suspect it's the call to getLatestInfo sometimes having a transient error. I think it probably needs a retry, or at least some slightly better error-handling and logging. I can take a stab at it if I have some free cycles next week. Thoughts?
CCDi commented
Hi team! Any thoughts/updates on this error? We bumped into it once again! 🙏
RamanaReddy0M commented
@allanbreyes @CCDi added undefinded/existence checks before applying replace(..)
Error: Cannot read properties of undefined (reading 'replace')
will be fixed with #88