atomicals-js icon indicating copy to clipboard operation
atomicals-js copied to clipboard

500 Internal Server Error,Wallet Information - Primary Address - undefined When Running 'npm run cli balances'

Open Keeeenking opened this issue 1 year ago • 2 comments

Hello Atomicals team,

I've encountered a recurring issue when trying to execute the command npm run cli balances in the Atomicals Javascript library. Each time I run this command, it results in a 500 Internal Server Error. Below are the details of the error and my setup:

Command:npm run cli balances Error Message: AxiosError: Request failed with status code 500

  1. Wallet Information - Primary Address - undefined ======================================================================================================== TypeError: Cannot read properties of undefined (reading 'length') at QR8bitByte.getLength (D:\atomicals-js-master\node_modules\qrcode-terminal\vendor\QRCode\QR8bitByte.js:11:20) at QRCode.make (D:\atomicals-js-master\node_modules\qrcode-terminal\vendor\QRCode\index.js:69:22) at Object.generate (D:\atomicals-js-master\node_modules\qrcode-terminal\lib\main.js:35:16) at D:\atomicals-js-master\dist\cli.js:492:24 at Generator.next () at fulfilled (D:\atomicals-js-master\dist\cli.js:5:58) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) // Include the full error stack here Setup and Environment:

Operating System: Windows Node.js version: (Include your Node.js version here) Docker containers running: lucky2077/atomicals-electrumx-proxy:latest lucky2077/atomicals-electrumx:latest Configuration settings: (Include relevant configuration settings, such as .env file) I've followed the installation and configuration instructions as per the official documentation. However, this error persists. Any insights or assistance in resolving this issue would be greatly appreciated.

Thank you for your support and for developing this innovative library. .env: ELECTRUMX_PROXY_BASE_URL=http://localhost:8080/proxy

WALLET_PATH=. WALLET_FILE=wallet.json

bitcoin.confg: daemon=1 zmqpubrawblock=tcp://127.0.0.1:28332 zmqpubrawtx=tcp://127.0.0.1:28333 rpcuser=keen rpcpassword=XXXX server=1 debug=rpc txindex=1 rpcbind=0.0.0.0 rpcallowip=172.17.0.0/16 rpcallowip=192.168.10.0/24 rpcauth=electrumx:41b039129c5e7de6bd7d060cbe2a4309$aa59d6de09417eae043799fe7d4ad383decddd4e928ce4f3c959464XXXX rpcbind=192.168.10.105 rpcallowip=127.0.0.1 rpcallowip=192.168.10.105

http://192.168.10.105:8080/: {"success":true,"info":{"note":"Atomicals ElectrumX Digital Object Proxy Online","usageInfo":{"note":"The service offers both POST and GET requests for proxying requests to ElectrumX. To handle larger broadcast transaction payloads use the POST method instead of GET.","POST":"POST /proxy/:method with string encoded array in the field "params" in the request body. ","GET":"GET /proxy/:method?params=["value1"] with string encoded array in the query argument "params" in the URL."},"healthCheck":"GET /proxy/health","github":"https://github.com/atomicals/electrumx-proxy","license":"MIT"}}

Keeeenking avatar Nov 22 '23 02:11 Keeeenking