Hello, I updated node, ceramicnetwork, and composedb to the latest versions, and when running npm run dev
I am getting this error. I am building on a fork of the EthDenver2023Demo. The deploy script is the same.
file:///home/johnhoang1994/wakeful/node_modules/@ceramicnetwork/common/lib/utils/fetch-json.js:21
throw new Error(`HTTP request to '${url}' failed with status '${res.statusText}': ${text}`);
Error: HTTP request to 'http://localhost:7007/api/v0/admin/modelData' failed with status 'Internal Server Error': {"error":"Schema verification failed for index: kjzl6hvfrbw6cai5yahdfq5h37v7ksb7mqx9af8a6t1218bzuxufqxf4xhov5e8. Please make sure latest migrations have been applied."}
at RemoteAdminApi.fetchJson [as _fetchJson] (file:///home/johnhoang1994/wakeful/node_modules/@ceramicnetwork/common/lib/utils/fetch-json.js:21:15)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async RemoteAdminApi.startIndexingModelData (file:///home/johnhoang1994/wakeful/node_modules/@ceramicnetwork/http-client/lib/remote-admin-api.js:71:9)
at async Composite.startIndexingOn (file:///home/johnhoang1994/wakeful/node_modules/@composedb/devtools/dist/composite.js:408:9)
Schema
type IcarusResource
@createModel(accountRelation: LIST, description: "Resource used to create blocks of text")
@createIndex(fields: [{ path: ["url"]} ])
@createIndex(fields: [{ path: ["title"]} ]) {
author: String @string(minLength: 1, maxLength: 140)
cid: String @string(minLength: 1, maxLength: 140)
clientMutationId: String @string(minLength: 1, maxLength: 140)
createdAt: DateTime
description: String @string(minLength: 1, maxLength: 3000)
doi: String @string(minLength: 1, maxLength: 140)
isbn: String @string(minLength: 1, maxLength: 140)
mediaType: String @string(minLength: 1, maxLength: 140)
publishedAt: Date
title: String @string(minLength: 1, maxLength: 140)
url: String @string(minLength: 1, maxLength: 140)
updatedAt: DateTime
}
Deployed Composite
{
"version": "1.1",
"models": {
"kjzl6hvfrbw6cai5yahdfq5h37v7ksb7mqx9af8a6t1218bzuxufqxf4xhov5e8": [
{
"jws": {
"payload": "AXESIGDOC3GwEyhWJ3YR2Wg75IC1ZTT_2gNtGtv5Ze7_iud5",
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WljcmVhdGVkQXShZCRyZWZ3Iy8kZGVmcy9HcmFwaFFMRGF0ZVRpbWVpbWVkaWFUeXBlo2R0eXBlZnN0cmluZ2ltYXhMZW5ndGgYjGltaW5MZW5ndGgBaXVwZGF0ZWRBdKFkJHJlZncjLyRkZWZzL0dyYXBoUUxEYXRlVGltZWtkZXNjcmlwdGlvbqNkdHlwZWZzdHJpbmdpbWF4TGVuZ3RoGQu4aW1pbkxlbmd0aAFrcHVibGlzaGVkQXShZCRyZWZzIy8kZGVmcy9HcmFwaFFMRGF0ZXBjbGllbnRNdXRhdGlvbklko2R0eXBlZnN0cmluZ2ltYXhMZW5ndGgYjGltaW5MZW5ndGgBdGFkZGl0aW9uYWxQcm9wZXJ0aWVz9Gd2ZXJzaW9uYzIuMGlpbnRlcmZhY2X0aXJlbGF0aW9uc6BqaW1wbGVtZW50c4BrZGVzY3JpcHRpb254JlJlc291cmNlIHVzZWQgdG8gY3JlYXRlIGJsb2NrcyBvZiB0ZXh0b2FjY291bnRSZWxhdGlvbqFkdHlwZWRsaXN0ZmhlYWRlcqNjc2VwZW1vZGVsZW1vZGVsUs4BBAFxcQsACWhtb2RlbC12MWtjb250cm9sbGVyc4F4OGRpZDprZXk6ejZNa2Z1aWdKSDdEWFA2UGlZcE1WTHZzWDFBazJDWUttTUVYNDg4ekN1Yjl0dndQ"
}
]
},
"indices": {
"kjzl6hvfrbw6cai5yahdfq5h37v7ksb7mqx9af8a6t1218bzuxufqxf4xhov5e8": [
{
"fields": [
{
"path": [
"url"
]
}
]
},
{
"fields": [
{
"path": [
"title"
]
}
]
}
]
},
"aliases": {
"kjzl6hvfrbw6cai5yahdfq5h37v7ksb7mqx9af8a6t1218bzuxufqxf4xhov5e8": "IcarusResource"
},
"views": {
"account": {},
"root": {},
"models": {
"kjzl6hvfrbw6cai5yahdfq5h37v7ksb7mqx9af8a6t1218bzuxufqxf4xhov5e8": {}
}
},
"commonEmbeds": []
}
Thanks for the help!