getAlby / getAlby/lightning-browser-extension

Error message: (Cannot read properties of undefined (reading "error")

Open
#962 4 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
585
Forks
228
Avg merge
6d 7h
Merged PRs (30d)
16

Description

**Describe the bug**
Sometimes we give the user an error message that says `Error message: (Cannot read properties of undefined (reading "error")`

Which basically means that our code somewhere tried to access an `errror` on something that is not there. This probably prevents that a useful error message is show.

I am not sure where exactly this happens and what code causes it.

Contributor guide

Open the contributing guide

Research direction

Start by searching the TypeScript codebase for accesses to an error property and for the exact message text, then investigate which path can receive an undefined value. Reproduce the failure if possible and trace it to its source. Done means the original useful error is shown instead of the undefined-property message.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.