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

Nothing in terminal after trying to create a sell order #54

Open
0ceanSlim opened this issue Feb 7, 2024 · 4 comments
Open

Nothing in terminal after trying to create a sell order #54

0ceanSlim opened this issue Feb 7, 2024 · 4 comments
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed

Comments

@0ceanSlim
Copy link

0ceanSlim commented Feb 7, 2024

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.

@grunch grunch added bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed labels Feb 8, 2024
@arkanoider
Copy link
Collaborator

arkanoider commented Feb 11, 2024

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

@0ceanSlim
Copy link
Author

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
Copy link
Author

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

@arkanoider
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants