Skip to content
This repository has been archived by the owner on Jul 25, 2023. It is now read-only.

Invalid timestamp buffer #5

Open
egalano opened this issue Dec 29, 2018 · 2 comments
Open

Invalid timestamp buffer #5

egalano opened this issue Dec 29, 2018 · 2 comments

Comments

@egalano
Copy link
Contributor

egalano commented Dec 29, 2018

    at Object.decode (/root/devp2p-network/node_modules/ethereumjs-devp2p/lib/dpt/message.js:27:36)
    at Object.decode (/root/devp2p-network/node_modules/ethereumjs-devp2p/lib/dpt/message.js:85:28)
    at Object.decode (/root/devp2p-network/node_modules/ethereumjs-devp2p/lib/dpt/message.js:173:35)
    at Server._handler (/root/devp2p-network/node_modules/ethereumjs-devp2p/lib/dpt/server.js:140:26)
    at Socket.Server._socket.on (/root/devp2p-network/node_modules/ethereumjs-devp2p/lib/dpt/server.js:50:14)
    at Socket.emit (events.js:182:13)
    at UDP.onMessage [as onmessage] (dgram.js:628:8)
RangeError: Invalid timestamp buffer :0167f757d38f
    at Object.decode (/root/devp2p-network/node_modules/ethereumjs-devp2p/lib/dpt/message.js:27:36)
    at Object.decode (/root/devp2p-network/node_modules/ethereumjs-devp2p/lib/dpt/message.js:85:28)
    at Object.decode (/root/devp2p-network/node_modules/ethereumjs-devp2p/lib/dpt/message.js:173:35)
    at Server._handler (/root/devp2p-network/node_modules/ethereumjs-devp2p/lib/dpt/server.js:140:26)
    at Socket.Server._socket.on (/root/devp2p-network/node_modules/ethereumjs-devp2p/lib/dpt/server.js:50:14)
    at Socket.emit (events.js:182:13)
    at UDP.onMessage [as onmessage] (dgram.js:628:8)
RangeError: Invalid timestamp buffer :0167f758bdae
    at Object.decode (/root/devp2p-network/node_modules/ethereumjs-devp2p/lib/dpt/message.js:27:36)
    at Object.decode (/root/devp2p-network/node_modules/ethereumjs-devp2p/lib/dpt/message.js:85:28)
    at Object.decode (/root/devp2p-network/node_modules/ethereumjs-devp2p/lib/dpt/message.js:173:35)
    at Server._handler (/root/devp2p-network/node_modules/ethereumjs-devp2p/lib/dpt/server.js:140:26)
    at Socket.Server._socket.on (/root/devp2p-network/node_modules/ethereumjs-devp2p/lib/dpt/server.js:50:14)
    at Socket.emit (events.js:182:13)
    at UDP.onMessage [as onmessage] (dgram.js:628:8)```
@kshinn
Copy link
Contributor

kshinn commented Dec 29, 2018

Is this a bug with the library and how it is interpreting certain client's messages?

@egalano
Copy link
Contributor Author

egalano commented Dec 29, 2018

Maybe. That last example in the log 0167f758bdae is 1546043047342 which as a unix timestamp is a few digits too many. I'd want to enable debug logging on the dht logger and see what the full message looks like. Maybe a specific client version is using the wrong timestamp format.

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

2 participants