-
Notifications
You must be signed in to change notification settings - Fork 212
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
AMM UI hung due to hung / dead issuer #4512
Comments
This may take a bit of effort for me to repro, do you happen to have the browser console output, any errors? |
Seems like this is specifically caused by killing the deploy script, as opposed to adding the cat token. It's not able to load the brand anymore because it disappeared with the script, and the app hangs because the setup fails. I'm not sure the extent to which we want to engineer around this, since it seems specific to a local setup. A couple ideas:
I'm leaning towards the latter because if it can't load an issuer from the chain then that's probably a sign that something went very wrong. However, that wouldn't fix the expected behavior for this specific local setup. |
When the deploy script is killed, it's the same as if an issuer returns promise rejection from an |
I was assuming that wouldn't be the case normally, but I suppose a non-standard issuer could reject for all sorts of reasons? That makes a bit more sense |
See also Agoric/documentation#663 . |
@samsiegart Talk to @dtribble about this from an architecture perspective. Timeouts == bad. |
In order to trigger this, you have to fire up an Ag Solo and make an issuer off chain and turn off Ag Solo. Taking this out of MN-1. |
A misbehaving issuer may also never respond, leaving all promise-for-results-of |
Describe the bug
The devnet AMM is hung, most likely because I added a pool based on an off-chain issuer and then exited my client, hence taking down the issuer.
To Reproduce
This is what I did, anyway. I haven't tried to do it again.
makeIssuerKit
and put it on the board (and put the mint in home.scratch) and leave the deploy script awaiting a never-resolving promise.E(ammAPI).addPool(issuer, 'Note2')
and add liquidity. See the Note2 issuer in the AMM (screenshot below)Cat
token.full REPL log:
https://gist.github.com/dckc/25c4f28f039c08f7cf1c460196396ac9
Expected behavior
AMM handles Cat tokens like Note2 tokens.
Platform Environment
devnet and the docker wallet
Additional context
This is the deploy script that was originally used for Note and then editing for Cat:
Screenshots
It worked the 1st time with Note2:
But with Cat, it hangs:
cc @michaelfig
The text was updated successfully, but these errors were encountered: