Open kyranjamie opened 7 months ago
Is this a P2 since it presumably isn't affecting most Ledger users?
I investigated this and have as yet been unable to reproduce. Is there a particular type of transaction I need to broadcast? Is it doing an action on an external site?
I have tested:
All of these actions completed without any console errors. Maybe there's a specific action to catch?
I can't find any calls to get(location.state
that use address.
@kyranjamie when you have time can you give some help reproducing this? I tried a few things and was unfortunately unable to trigger the error.
I have seen similar issues like this sometimes if I am serving the APP in dev mode and auto reload is triggered.
I would try triggering some Bitcoin sends with Ledger from the sendTransfer
flow. I wonder if there are any cases where we navigate to the confirmation step without address?
I spent some time on this and performed a lot of testing and unfortunately have as yet been unable to replicate this.
I prepared this PR that adds some defensive code and analytics to when we error in the hope it will help identify it in the future.
I tried lots of different transfers:
.address
could fail and added some defensive code where it could help v6.31.0
and searched through the code then also and couldn't find anything obvious Cannot read property of undefined reading .address
I found two more errors which could possibly be related but those were first seen in v6.36.0
so thats unlikely:
If you're unable to replicate at all, then we can close. More analytics are a good idea 👍🏼
Re-opening this issue. I used Lockstacks again yesterday and again run into the Cannot read property of undefined reading .address
error.
It's very confusing because the transaction does broadcast, but we show a generic error because of this issue. We should not be handling form state in this way.
Also noticed this
Type casting is a mistake here, we don't know that it's a TokenTransferPayload
for sure
@kyranjamie is this P1 or P2?
I think we should consider a https://github.com/leather-io/extension/labels/bug-p1
Don't have a stack trace to share, but I encountered this yesterday broadcasting a tx with Ledger.
On the broadcast success screen, there's a "Cannot read property of
undefined
reading .address" error. Looks like an issue with route state.Because there's a runtime error, we show the "Unable to broadcast screen" even if the transaction does broadcast sucessfully.