Skip to content
This repository has been archived by the owner on Jan 24, 2025. It is now read-only.

ipv6 ws address parse wrong #578

Closed
2 tasks done
shynome opened this issue Jan 16, 2021 · 1 comment
Closed
2 tasks done

ipv6 ws address parse wrong #578

shynome opened this issue Jan 16, 2021 · 1 comment

Comments

@shynome
Copy link

shynome commented Jan 16, 2021

New issue checklist

General information

  • Library version(s): today's master f8d2639
  • Browser version(s): node
  • Devices/Simulators/Machine affected:
  • Reproducible in the testnet? (Yes/No):
  • Related issues:

Bug report

Expected behavior

no exception

Actual behavior

[I 15:11:46] Node: Syncing at block: 18500
Uncaught exception: Invalid URL: ws://2408:0000:0006:0000::001:8080
Uncaught exception: Invalid URL: ws://2408:0000:0006:0000::001:8080 { TypeError [ERR_INVALID_URL]: Invalid URL: ws://2408:0000:0006:0000::001:8080
    at onParseError (internal/url.js:241:17)
    at new URL (internal/url.js:319:5)
    at initAsClient (/nimiq/core/node_modules/ws/lib/websocket.js:478:17)
    at new WebSocket (/nimiq/core/node_modules/ws/lib/websocket.js:72:7)
    at Function.newWebSocket (/nimiq/core/dist/node.js:1132:16)
    at WebSocketConnector.connect (/nimiq/core/dist/node.js:31495:37)
    at ConnectionPool.connectOutbound (/nimiq/core/dist/node.js:37385:44)
    at Network._checkPeerCount (/nimiq/core/dist/node.js:38970:36)
    at ontimeout (timers.js:436:11)
    at tryOnTimeout (timers.js:300:5) input: 'ws://2408:0000:0006:0000::001:8080' }
[I 15:11:49] Node: Syncing at block: 18600  
[I 15:11:50] Node: Syncing at block: 18700                                                                                                                                                                                                                                     
[I 15:11:51] Node: Syncing at block: 18800                                                                                                                                                                                                                                     
[I 15:11:52] Node: Syncing at block: 18900 

Steps to reproduce

docker run --rm -ti --net host nimiq/nodejs-client --host=2408:0000:0006:0000::001 --port=8080 --protocol=ws --miner=8 --wallet-address='yout wallet address'

2408:0000:0006:0000::001 is your ipv6 address, not this, this is a fake ipv6 address

wait a minute you can see expection

@shynome
Copy link
Author

shynome commented Jan 23, 2021

oh this project is dead, I give up.

@shynome shynome closed this as completed Jan 23, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant