Hey @spencer no worries!
I think we’ve experienced this issue with stream_content
not being updated again. We’re using Ceramic daemon version 2.28.0
.
On a request to https://ldg-node-mainnet.lateral.io/api/v0/collection
with the payload:
{
"model":"kjzl6hvfrbw6cb2jnkx7alocvot6qcl4351jl4p9jxoh4t71wy3j4m8mx82dj5l",
"first":1000,
"after":"eyJjcmVhdGVkX2F0IjoiMjAyMy0wMy0xNlQxNzoyMTo1NC45NTRaIn0"
}
We get from the list of edges
in the response (I cherry picked one):
{
"cursor": "eyJzdHJlYW1faWQiOiJranpsNmtjeW03dzh5OXI4Mnd0eGZ1Mzh0dDF5Mm5uOWRnOGliMmZ3ZDdrZGh0d2sydWd2amQwNDFmczkxeDEiLCJsYXN0X2FuY2hvcmVkX2F0IjoiMjAyMy0wMy0xNlQxNzo1NTo1OS4wMDBaIiwiY3JlYXRlZF9hdCI6IjIwMjMtMDMtMTZUMTc6MjM6MDcuOTIxWiJ9",
"node": {
"type": 3,
"content": {
"data": {
"url": "",
"label": "redacted",
"childrenHidden": false
},
"type": "QuestionNode",
"created": "2023-03-16T17:23:02.210Z",
"position": {
"x": 6249.009705321687,
"y": 2081.686638932159
},
"lateralID": "bb602e5b-7b84-4d40-9137-08fbe4a18e9e",
"projectID": "kjzl6kcym7w8y5ef48u98w02ivyeodzrat4ln7t4gwwiwm8gwxboulvg566rnq2",
"deleted": true
},
"metadata": {
"controllers": [
"did:pkh:eip155:1:0x0d0a642ce2553c88a2e9b7fe5939d4b6cf69260e"
],
"model": "kjzl6hvfrbw6cb2jnkx7alocvot6qcl4351jl4p9jxoh4t71wy3j4m8mx82dj5l"
},
"signature": 2,
"anchorStatus": "FAILED",
"log": [
{
"cid": "bagcqcerayodz32ecpkauh4ln7cs5u74pwcelyo3mbpnmphzhetqachw7xh2q",
"type": 0,
"expirationTime": 1686924574,
"timestamp": 1678989359
},
{
"cid": "bagcqcerae2p4v2cay7brlpmmon7at5yefpz5pbeih3qnh7vxvca3qrcwhxpq",
"type": 1,
"expirationTime": 1686924574,
"timestamp": 1678989359
},
{
"cid": "bafyreihr2lvtsumocyvhe63zyzzlfsqgxa52fywdhwohoa6ducabjlwkfi",
"type": 2,
"timestamp": 1678989359
}
],
"anchorProof": {
"root": "bafyreiasa3lrgvwh3ufcgym2gj3san44uk4mdx7oqwh7tw2nwib4osi5gy",
"txHash": "bagjqcgzarlm2zk5ajavbdz5npndc2felhs4jix2grn6hw6pf7pdyuqz2j3pa",
"txType": "f(bytes32)",
"chainId": "eip155:1"
},
"doctype": "MID"
}
}
And in the database (copied it as JSON):
{
"stream_id": "kjzl6kcym7w8y9r82wtxfu38tt1y2nn9dg8ib2fwd7kdhtwk2ugvjd041fs91x1",
"controller_did": "did:pkh:eip155:1:0x0d0a642ce2553c88a2e9b7fe5939d4b6cf69260e",
"stream_content": {
"data": {
"url": "",
"label": "redacted",
"childrenHidden": false
},
"type": "QuestionNode",
"created": "2023-03-16T17:23:02.210Z",
"position": {
"x": 6249.009705321687,
"y": 2081.686638932159
},
"lateralID": "bb602e5b-7b84-4d40-9137-08fbe4a18e9e",
"projectID": "kjzl6kcym7w8y5ef48u98w02ivyeodzrat4ln7t4gwwiwm8gwxboulvg566rnq2"
},
"tip": "bagcqcerayodz32ecpkauh4ln7cs5u74pwcelyo3mbpnmphzhetqachw7xh2q",
"last_anchored_at": "2023-03-16 17:55:59+00",
"first_anchored_at": null,
"created_at": "2023-03-16 17:23:07.921+00",
"updated_at": "2023-03-16 18:37:04.285+00",
"custom_projectID": "kjzl6kcym7w8y5ef48u98w02ivyeodzrat4ln7t4gwwiwm8gwxboulvg566rnq2"
}
As you can see, the "deleted": true
property is missing from the database stream_content
.
If I search the logs fro the stream ID I get:
Mar 22 12:25:47 discourse-graph-demo-2 ceramic[444]: [2023-03-22T12:25:47.217Z] INFO: Resumed running state for stream id: kjzl6kcym7w8y9r82wtxfu38tt1y2nn9dg8ib2fwd7kdhtwk2ugvjd041fs91x1
Mar 22 12:26:57 discourse-graph-demo-2 ceramic[444]: [2023-03-22T12:26:57.248Z] WARNING: Anchor failed for commit bafyreihr2lvtsumocyvhe63zyzzlfsqgxa52fywdhwohoa6ducabjlwkfi of stream kjzl6kcym7w8y9r82wtxfu38tt1y2nn9dg8ib2fwd7kdhtwk2ugvjd041fs91x1: Request doesn't exist
Any ideas what might be causing this? It prevents us from being able to rely on the indexing DB as accurate.
Also, we’re using PostgreSQL now.