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

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

Open
NathanielRMoss opened this issue Nov 1, 2023 · 0 comments
Open

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

NathanielRMoss opened this issue Nov 1, 2023 · 0 comments

Comments

@NathanielRMoss
Copy link

NathanielRMoss commented Nov 1, 2023

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 32145b6 (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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant