comit-network / xmr-btc-swap

Bitcoin–Monero Cross-chain Atomic Swap
GNU General Public License v3.0
657 stars 84 forks source link

Error: Failed to complete swap. Caused by: request timed out #588

Open cimble-code opened 3 years ago

cimble-code commented 3 years ago

I'm suddenly having a problem where I can't swap with my ASB running on Ubuntu 20.04 anymore.

I initiate a swap ./swap buy-xmr --receive-address 59McWTPGc745SRWrSMoh8oTjoXoQq6sPUgKZ66dQWXuKFQ2q19h9gvhJNZcFTizcnT12r63NFgHiGd6gBCjabzmzHAMoyD6 --seller-addr /dnsaddr/myasb.net --seller-peer-id 12D3KooWRNvG7rKE8Ks19DCaxVVucGGVbQqqqApgBNdPLQvXTsDh --testnet

This error is printed to the terminal the swap cli

All connections will go through Tor socks5 proxy
Connected to Alice at /dns4/myasb.net/tcp/9939/p2p/12D3KooWRNvG7rKE8Ks19DCaxVVucGGVbQqqqApgBNdPLQvXTsDh
Received quote: 1 XMR ~  price=0.00630972 BTC minimum_amount=0.00010000 BTC maximum_amount=0.06000000 BTC
Swapping amount=0.00049878 BTC fees=0.00000122 BTC swap_id=10402254-6953-4925-a073-8e448d20658a
Estimated fee of 137.0 is smaller than the min relay fee, defaulting to min relay fee 1000
Estimated fee of 149.0 is smaller than the min relay fee, defaulting to min relay fee 1000
Spot price btc=0.00049878 BTC xmr=0.079049466537 XMR
Error: Failed to complete swap
Caused by:
    request timed out

This is the corresponding error from the asb

{
  "timestamp": "2021-06-26 18:39:56",
  "level": "WARN",
  "fields": {
    "message": "Lost connection. Error Connection error: I/O error: connection is closed",
    "peer": "12D3KooWG848TwWAdmmQB1ZGL2WxnGbaNdrFQesrbvb6oSBTdoZD",
    "address": "/ip4/myip/tcp/50682"
  }
}

I'm almost 100% certain that this is not a network issue (e.g slow connection). The swap fails even when the swap-cli is executed on the same machine as the ASB.

thomaseizinger commented 3 years ago

Which versions are you running? Latest HEAD or is this a release?

rishflab commented 3 years ago

@cimble-code are you still have this issue with the new release? Would like to close this issue if it has been resolved.