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

still unable to write model, invalid did: #9

Open
bshambaugh opened this issue Mar 21, 2022 · 2 comments
Open

still unable to write model, invalid did: #9

bshambaugh opened this issue Mar 21, 2022 · 2 comments

Comments

@bshambaugh
Copy link

bshambaugh commented Mar 21, 2022

In the writeModel function in index.js in the brents_ceramic2 branch I get the following error when running the code:
https://github.com/spctcl/metasign/blob/brents_ceramic2/nextjs_app/pages/index.js#L266-L272
scr-1647826939

@etherik
Copy link
Contributor

etherik commented Mar 21, 2022

At a high level, one issue could be the use of the devtools library at runtime with React. According to those, it is not intended for that, which is why I created the scripts in https://github.com/spctcl/metasign/tree/development/data_model_scripts

Relevant docs:
https://developers.ceramic.network/reference/glaze/modules/devtools/

@bshambaugh
Copy link
Author

Paul LeCam got back with me:

"Yes, streams used in datamodels must use a key DID. This is just a constraint to create the datamodels, at runtime it's possible to use datamodel streams with any DID."

https://gist.github.com/bshambaugh/5da602a8d85f2916d0ab91ea3afb896c

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

2 participants