Skip to content
This repository has been archived by the owner on Sep 20, 2023. It is now read-only.

Making Offer on Android fails #3411

Closed
sparrowDom opened this issue Sep 16, 2019 · 11 comments
Closed

Making Offer on Android fails #3411

sparrowDom opened this issue Sep 16, 2019 · 11 comments
Labels
android bug Something isn't working as intended dapp P1 Large amount of significant user impact, a meaningful feature is broken transaction flow ui/ux

Comments

@sparrowDom
Copy link
Member

When @kayyoo23 is trying to make an offer from her Android she consistently gets stuck on this screen.

These are the errors reported by Sentry from her device: error 1 error 2 error 3 error 4

@micahalcorn micahalcorn added bug Something isn't working as intended ui/ux P1 Large amount of significant user impact, a meaningful feature is broken labels Sep 16, 2019
@mikeshultz
Copy link
Contributor

I don't understand why it's requesting a transaction receipt when no transaction has even been sent.

Account: https://etherscan.io/address/0x0bB2C6478677aCbAd673e1D55FD26B0C06Ae2e18
Proxy: https://etherscan.io/address/0x2cad506fa67291ce479eca86d6ec5ebfa5ff7336

@mikeshultz
Copy link
Contributor

This issue encompasses #3275, #3410

I think Invalid params is perhaps at the core of this one.

@franckc
Copy link
Contributor

franckc commented Sep 16, 2019

I watched @kayyoo23 try to make an offer on a different listing. This time she got stuck on the confirmation page. The blue button for confirming had a spinner and never became clickable.

Screenshot_20190916-144941_Origin

@mikeshultz
Copy link
Contributor

Actually, I'm gonna say it's the messaging bug (shipping address) broken out in #3410.

@tomlinton
Copy link
Contributor

This would happen if this resolved but failed to have sent this transaction. If it errored the app should crash and we should see something reported in Sentry for origin-mobile. It seems like it is resolving but never sending the transaction correctly. I wonder if it is something with Alchemy. But that doesn't make sense if it is just limited to that one device.

@tomlinton
Copy link
Contributor

I don't think this is Android (or mobile) specific. I think its more likely an issue with Alchemy.

@mikeshultz
Copy link
Contributor

@tomlinton could this be caused by it getting garbage for transaction/msgData.data?

@micahalcorn micahalcorn added this to the ❔ 9/11/19-9/24/19 milestone Sep 17, 2019
@tomlinton
Copy link
Contributor

I think that is unlikely as all of the data in that screenshot above is parsed from the transaction data in msgData.data.

@mikeshultz
Copy link
Contributor

ok, so, had a look at the ethers.js docs:

Sends the transaction (see Transaction Requests) to the network and returns a Promise that resolves to a Transaction Response. Any properties that are not provided will be populated from the network.

The transaction response object appears to be a regular old transaction object and it doesn't appear to block for mining or anything.

I have no idea what the behavior would be with some of the Alchemy behavior. For instance, what does Ethers.js do upon a 429 rate limiting behavior? This was a big part of the reasoning for building our own web3.js provider. And I'm not really sure how we should approach this either, since the mobile app doesn't use web3.js in this case.

Here's some interesting relevant discussion. Looks like it might be relatively easy to add this functionality.

Though I'm still wondering if we aren't off-base here. At least one of the relevant errors in Sentry are specifically coming from within web3.

@tomlinton
Copy link
Contributor

Interesting, I'd hope ethers would throw on any non-success codes. I was thinking Alchemy might be returning something that looks like a success code but actually isn't (i.e. a 200 response on something that is an error with an error message in the response that needs to be parsed).

@micahalcorn
Copy link
Member

Closing until we get another report 🤞

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
android bug Something isn't working as intended dapp P1 Large amount of significant user impact, a meaningful feature is broken transaction flow ui/ux
Projects
None yet
Development

No branches or pull requests

5 participants