eosrio / hyperion-history-api

Scalable Full History API Solution for Antelope (former EOSIO) based blockchains
https://hyperion.docs.eosrio.io
Other
125 stars 72 forks source link

hyp-repair fill-missing Invalid URL error. #143

Open NathanielRMoss opened 11 months ago

NathanielRMoss commented 11 months ago

I was able to connect and "Finished checking forked blocks!" using ./hyp-repair scan mymainnet. My hyperion indexer and api are running. But when I try to use the fix commands, I'm getting an invalid URL. The chain file is there (if I change the name or move the file, I get a ENOENT: no such file or directory).

khype@koyn-hyperion:~/hyperion$ git show commit 32145b6e1c0f917d3da8b02661d224529c9c22ca (HEAD -> main, origin/main, origin/HEAD) Author: Igor Lins e Silva igor.linsesilva@gmail.com Date: Tue Oct 10 21:21:35 2023 -0300

khype@hyperion:~/hyperion$ ./hyp-repair fill-missing kmainnet .repair/mymainnet-4-33864607-missing-blocks.json /home/khype/hyperion/node_modules/ws/lib/websocket.js:676 throw new SyntaxError(Invalid URL: ${address}); ^ SyntaxError: Invalid URL: ws://localhost:undefined/local at initAsClient (/home/khype/hyperion/node_modules/ws/lib/websocket.js:676:13) at new WebSocket (/home/khype/hyperion/node_modules/ws/lib/websocket.js:85:7) at fillMissingBlocksFromFile (/home/khype/hyperion/scripts/hyp-repair.js:633:24) at Command.repairMissing (/home/khype/hyperion/scripts/hyp-repair.js:178:11) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) Node.js v18.16.0