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

message.ttl is not a function #42

Open
mtiger2k opened this issue Mar 19, 2023 · 0 comments
Open

message.ttl is not a function #42

mtiger2k opened this issue Mar 19, 2023 · 0 comments

Comments

@mtiger2k
Copy link

when I create ipfs-daemon with latest releases, I encoutnered this issue:
TypeError: message.ttl is not a function
at notify (file:///Users/tiansha/ipfs/dids-test/node_modules/@achingbrain/ssdp/dist/src/commands/notify.js:14:77)
at SSDPImpl.emit (node:events:513:28)
at parseSsdpMessage (file:///Users/tiansha/ipfs/dids-test/node_modules/@achingbrain/ssdp/dist/src/parse-ssdp-message.js:38:10)
at SSDPImpl.emit (node:events:513:28)
at Socket. (file:///Users/tiansha/ipfs/dids-test/node_modules/@achingbrain/ssdp/dist/src/create-sockets.js:10:22)
at Socket.emit (node:events:513:28)
at UDP.onMessage [as onmessage] (node:dgram:933:8)

should change this line: resolveService(ssdp, message.USN, message.NT, message.LOCATION, message.ttl()) to
resolveService(ssdp, message.USN, message.NT, message.LOCATION, message.ttl ? message.ttl():188000)

thanks.

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