mostro-cli icon indicating copy to clipboard operation
mostro-cli copied to clipboard

Nothing in terminal after trying to create a sell order

Open 0ceanSlim opened this issue 1 year ago • 4 comments

me@devbox:~/mostro-cli$ cargo run neworder --kind sell --fiatcode usd --fiatamount 5 --paymentmethod lightning
    Finished dev [unoptimized + debuginfo] target(s) in 0.18s
     Running `target/debug/mostro-cli neworder --kind sell --fiatcode usd --fiatamount 5 --paymentmethod lightning`
┌──────────┬──────────────┬───────────┬─────────────┬────────────────┬──────────                               ─┐
│ Buy/Sell ┆  Sats Amount ┆ Fiat Code ┆ Fiat Amount ┆ Payment method ┆ Premium %                                │
╞══════════╪══════════════╪═══════════╪═════════════╪════════════════╪══════════                               ═╡
│   Sell   ┆ market price ┆    USD    ┆      5      ┆    lightning   ┆     0                                    │
└──────────┴──────────────┴───────────┴─────────────┴────────────────┴──────────                               ─┘
Check your order! Is it correct? (Y/n) > y

I just started running mostr, so I tried to create a sell order. I got to "check you order" and after entering "y" nothing returned. The program seems locked up. Maybe I have some setting wrong somewhere, (I think they're right though) but there's no indication what went wrong and I don't know how to proceed.

0ceanSlim avatar Feb 07 '24 20:02 0ceanSlim

Will have a look @0ceanSlim !

I think it is because your relay list in .env file has all unresponsive relays, from my quick test and lookin at the code we should add some timeout protection in that case.

Could it be that if you leave the terminal hung for some time you get something like this?

And can you replicate it? Eventually drop your relay list here.

Istantanea_2024-02-11_09-20-24

arkanoider avatar Feb 11 '24 08:02 arkanoider

Will have a look @0ceanSlim !

I think it is because your relay list in .env file has all unresponsive relays, from my quick test and lookin at the code we should add some timeout protection in that case.

Could it be that if you leave the terminal hung for some time you get something like this?

And can you replicate it? Eventually drop your relay list here.

Istantanea_2024-02-11_09-20-24

I tried again today after changing the default relay list to have a bunch of my relays in it and it worked immediately. So yes, I think it definitely had something to do with the default relay list in my .env

0ceanSlim avatar Feb 12 '24 13:02 0ceanSlim

Not seeing any pending orders in list orders but I did get a dm in nostr with the order. image

0ceanSlim avatar Feb 12 '24 13:02 0ceanSlim

This could happen @0ceanSlim , relay doesn't alway publish immediately I suppose.

Check the order on mostro web and try again after some seconds with cli...

Relays are not always responsive, sometimes they do not respond for some time. For sure we can add some faster message ( 5secs ) if no relay are connecting to send message of orders.

arkanoider avatar Feb 12 '24 13:02 arkanoider