I had a trouble running a command on CLI with glaze, it’s the Create a Stream step (4) with glaze, in the CLI guide. For now, any input I pass to tile creation, strangely, I am receiving
SyntaxError: Non-base16 character with the example command in the guide pasted.
here’s that error :
$ glaze tile:create --key MY_KEY --content '{"stageName":"streamerd"}'
SyntaxError: Non-base16 character
just checked there was another question, getting the same error while creating a schema. Well I am not at that phase yet.
And wondering if there’s been an update and my CLI version also needs an update.
got this setup. @glazed/cli/0.2.2 darwin-x64 node-v16.14.0
Have a nice time,
&
here’s the guide I was following.
I faced this same issue and my confusion was in the documentation the example mentions the use of --key option, though the terminal output when running glaze did:create is
✔ Created DID did:key:xxxxxxxx with seed xxxxxxxxx
So perhaps just mentioning in the Docs that you need to use the seed value here, not the key value might help as that also tripped me up until I saw this post.
Hi, I noticed the same issue when following the documentation in ComposeDB…
where the instructions to generate a key are simply:
composedb did:generate-private-key
but it causes error later in the process when attempting to create models with did since it requires non-base16 encoding and the key generated from the given command doesn’t meet that requirement.
Solution suggested in this thread worked for me using the did:key and seed from the below commands:
npm install --global @glazed/cli
glaze did:create
I was thinking to create a fork of composeDB documentation and add the above commands but just wanted to first share here before proposing to update the document
Note the Glaze CLI is deprecated and not recommended for use anymore. @paul any idea why the DID generated from composedb did:generate-private-key didn’t work but the one from glaze did:create did?