Hi, I have a problem with IDX-CLI for idx definition:create getting error:
HTTP request to ‘http://localhost:7007/api/v0/streams’ failed with status ‘Internal Server Error’: {“error”:“Validation Error: data/url must be string”}
Steps:
Created Schema with: “idx schema:publish” Schema published with URL: ceramic://k3y52l7qbv1fryj3kck95cmjo1rjgmvz60922viqes6d4at00htd21yf5ba17203k
idx definition:create did:key:z6MkeYuELYHU72iLdzkdK59NZD7vq1YrUFCWaiFyjvxDQtkB --schema=‘ceramic://k3y52l7qbv1fryj3kck95cmjo1rjgmvz60922viqes6d4at00htd21yf5ba17203k’ --name=“Notes list” --description=“A list of notes”
Any Hint?
Thanks
Thanks for reaching out, PheonixDev!
Do you have the contents of the published schema? Could you share it, please ?
idx schema:publish did:key:z6MkuEd4fm7qNq8hkmWFM1NLVBAXa4t2GcNDdmVzBrRm2DNm ‘{"$schema":“http://json-schema.org/draft-07/schema",“title”:“NotesList”,“type”:“object”,“properties”:{“notes”:{“type”:“array”,“title”:“notes”,“items”:{“type”:“object”,“title”:“NoteItem”,“properties”:{“id”:{"$ref":"#/definitions/CeramicDocId"},“title”:{“type”:“string”,“title”:“title”,“maxLength”:100}}}}},“required”:[“notes”],“definitions”:{“CeramicDocId”:{“type”:“string”,“pattern”:"^ceramic://.+(\\?version=.+)?","maxLength”:150}}}’
This schema from step2 published on: developers.idx.xyz/guides/definitions/creating/
{
$schema: ‘http://json-schema.org/draft-07/schema’,
title: ‘NotesList’,
type: ‘object’,
properties: {
notes: {
type: ‘array’,
title: ‘notes’,
items: {
type: ‘object’,
title: ‘NoteItem’,
properties: {
id: {
$ref: ‘#/definitions/CeramicDocId’,
},
title: {
type: ‘string’,
title: ‘title’,
maxLength: 100,
},
},
},
},
},
required: [‘notes’],
definitions: {
CeramicDocId: {
type: ‘string’,
pattern: ‘^ceramic://.+(\?version=.+)?’,
maxLength: 150,
},
},
}
Ok, got it!
So you’ve been following the tutorial, proceeded to this step and got the error that you shared.
Thanks again for highlighting! Please, give us a bit of time to reproduce and get back to you .
One more question, @PhoenixDev : could you also share how you run your ceramic daemon?
I started Ceramic Daemon having the Ceramic CLI installed → command: ceramic daemon, getting default URL localhost:7007
Ok, @PhoenixDev , I’ve been able to reproduce the error. Please, give us some time to come up with a fix
Hey, @PhoenixDev , thanks for your patience
IDX-CLI was deprecated late last year. Please read the blog post for more info.
Please, use Glaze CLI or Self.ID for now instead .