Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hangs on "waiting on funds" even if tank request clearly fails #230

Open
Fang- opened this issue Aug 14, 2019 · 4 comments
Open

Hangs on "waiting on funds" even if tank request clearly fails #230

Fang- opened this issue Aug 14, 2019 · 4 comments
Labels
bug generic bork error handling shared won't fix addressed in new version of bridge

Comments

@Fang-
Copy link
Member

Fang- commented Aug 14, 2019

Observing this in the case where the gas tank is offline, this might also happen if the gas tank refuses your request:

(Specifically, on the version of Bridge from #221, while doing invite sending, but iirc this has been reported in other contexts also.)

The UI stays on "waiting for funds" even though the browser console has already said "tank: funding failed". This should be communicated to the user immediately, as per waitForBalance()'s askForFunding.

@shrugs
Copy link
Contributor

shrugs commented Aug 19, 2019

@Fang- what's the original thought behind the check here: https://github.com/urbit/bridge/blob/mino/src/lib/tank.js#L60 since afaik point is always known?

@shrugs
Copy link
Contributor

shrugs commented Aug 19, 2019

this looks like it's actually intentional behavior in the code. the flow for ensureFundsFor basically says "try tank and if fail call waitForBalance" which means the tank can fail and the user should provide their own funds. which scenario is is not ideal?

@Fang-
Copy link
Member Author

Fang- commented Aug 19, 2019

Yeah we really should just require/assume point there.

this looks like it's actually intentional behavior in the code.

To clarify, when I said this:

The UI stays on "waiting for funds" even though the browser console has already said "tank: funding failed". This should be communicated to the user immediately

I meant showing a "pls fund manually" message alongside the "awaiting funds" status, when this happens.

@shrugs
Copy link
Contributor

shrugs commented Aug 19, 2019

ah, in that case, is the askForFunds from waitForBalance not called basically immediately (at least, after checking the address balance, which should be pretty quick)? Seems like the console would print and then we'd do the balance fetch and then set askForFunds right afterwards

@jamesacklin jamesacklin added won't fix addressed in new version of bridge and removed error handling labels Jan 23, 2022
@lukestiles lukestiles added bug generic bork shared labels Jul 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug generic bork error handling shared won't fix addressed in new version of bridge
Projects
None yet
Development

No branches or pull requests

4 participants