blocknetdx / block-dx

Block DX - P2P Decentralized exchange powered by Blocknet's XBridge Protocol
https://blockdx.net
52 stars 43 forks source link

Error: Unable to create order. Either the Blocknet wallet is still loading network data (takes a few minutes after syncing completes) or no nodes on the network are currently supporting this trade pair. (API: dxMakeOrder, Code: 1032) #267

Open EmanuelLoos opened 3 years ago

EmanuelLoos commented 3 years ago

In the latest version (v1.8.0) on the GNU/Linux distribution LMDE 4 (basically Debian 10 with a few changes) using the AppImage (root or no root, --no-sandbox) or the Debian Package (root, --no-sandbox) to create an order (also the order book and the order history are empty) I keep getting:

Debian Package:

(electron) The default value of app.allowRendererProcessReuse is deprecated, it is currently "false".  It will change to be "true" in Electron 9.  For more information please check https://github.com/electron/electron/issues/18397
(electron) 'setZoomFactor function' is deprecated and will be removed. Please use 'zoomFactor property' instead.
Checking for update
Error: Error: ENOENT: no such file or directory, open '/opt/BLOCK DX/resources/app-update.yml'
Error: Unable to create order. Either the Blocknet wallet is still loading network data (takes a few minutes after syncing completes) or no nodes on the network are currently supporting this trade pair.

API:        dxMakeOrder
Code:   1032

Could not find a service node with required services: 
    at ServiceNodeInterface._queueRequest (/opt/BLOCK DX/resources/app.asar/src-back/service-node-interface.js:412:15)
    at async Timeout._onTimeout (/opt/BLOCK DX/resources/app.asar/src-back/service-node-interface.js:369:26)

Without --no-sandbox the Debian Package doesn't start:

Trace/breakpoint trap (core dumped)

AppImage:

(electron) The default value of app.allowRendererProcessReuse is deprecated, it is currently "false".  It will change to be "true" in Electron 9.  For more information please check https://github.com/electron/electron/issues/18397
(electron) 'setZoomFactor function' is deprecated and will be removed. Please use 'zoomFactor property' instead.
Checking for update
Generated new staging user ID: 7ce9cedb-8081-5bff-938e-e95a9ae62696
Update for version 1.8.0 is not available (latest version: 1.8.0, downgrade is disallowed).
Error: Unable to create order. Either the Blocknet wallet is still loading network data (takes a few minutes after syncing completes) or no nodes on the network are currently supporting this trade pair.

API:        dxMakeOrder
Code:   1032

Could not find a service node with required services: 
    at ServiceNodeInterface._queueRequest (/tmp/.mount_BLOCK-zx9ZWg/resources/app.asar/src-back/service-node-interface.js:412:15)
    at async Timeout._onTimeout (/tmp/.mount_BLOCK-zx9ZWg/resources/app.asar/src-back/service-node-interface.js:369:26)

Without --no-sandbox the AppImage doesn't start:

[12229:0102/023935.009197:FATAL:setuid_sandbox_host.cc(157)] The SUID sandbox helper binary was found, but is not configured correctly. Rather than run without sandboxing I'm aborting now. You need to make sure that /tmp/.mount_BLOCK-P18t24/chrome-sandbox is owned by root and has mode 4755.
Trace/breakpoint trap (core dumped)

I searched quite a while but could not find anything about this issue, except for the SUID Sandbox Issue when starting the AppImage without --no-sandbox.

Thanks in advance!

tryiou commented 3 years ago

Error: Unable to create order. Either the Blocknet wallet is still loading network data (takes a few minutes after syncing completes) or no nodes on the network are currently supporting this trade pair. i get this error when losing my nodes on my local blocknet wallet with open orders on xbridge, or trying to push orders too early after launching blocknet wallet, could be out of sync too, i would check blocknet and other involved coins wallet for block header and peerlist to make sure they are 'healthy'. This or one of the coins you are trying to trade is really out of support actually (ie no service nodes hosting it), you can check this by typing in your blocknet debug console: "dxgetnetworktokens" and make sure your coins are actually supported: https://api.blocknet.co/#dxgetnetworktokens

luusluus commented 3 years ago

Actually there is a web end point for this:

https://data.blocknet.co/api/v2.0/dxgetnetworktokens