yoursunny / NDNts

NDN libraries for the Modern Web
https://ndnts-docs.ndn.today
ISC License
31 stars 9 forks source link

TypeError: input.split is not a function or its return value is not iterable #2

Closed ernoaapa closed 4 years ago

ernoaapa commented 4 years ago

Thanks for awesome NDN libraries!

Followed example in the cat README and got following error

ndncat put-segmented /A </tmp/1.bin

ndncat put-segmented <name>

publish segmented object

Positionals:
  name  name prefix                                          [string] [required]

Options:
  --help         Show help                                             [boolean]
  --version      Show version number                                   [boolean]
  --convention1  use 2014 Naming Convention           [boolean] [default: false]
  --rdr          publish RDR metadata packet           [boolean] [default: true]
  --ver          version number; 'none' to omit version component, 'now' to use
                 current timestamp                     [string] [default: "now"]
  --file         read from file instead of stdin                        [string]
  --chunk-size   segment payload size                   [number] [default: 4096]

TypeError: input.split is not a function or its return value is not iterable
    ...

Looks like that the instanceof Component check fails every time even though input is instance of Component class.

ernoaapa commented 4 years ago

Found the issue. I was fetching some dependencies from https://ndnts-nightly.netlify.app and some from https://ndnts-nightly.ndn.today. Which one is btw. the official one?

yoursunny commented 4 years ago

Nightly packages should be installed from https://ndnts-nightly.ndn.today/ domain. It used to be on Netlify but their ToS says I'm not supposed to host binaries.