This is the part where I am getting the error:
await datastore.set("patientBasicInformation", {
name: "John Doe",
gender: "male",
dateOfBirth: "14/12/2001",
maritalStatus: "unmarried",
});
And this is the error I am getting:
Error: Failed to load stream: k3y52l7qbv1fryijn6j2t49khorxu1wfmzlhkmp2rof5xt5e5d5iyc92tm8aoqpkw
at eval (index.js:158:1)
at Array.map (<anonymous>)
at TileLoader._batchLoadFn (index.js:155:1)
I have no idea why it fails to load. Here is the stream id: https://cerscan.com/testnet-clay/stream/k3y52l7qbv1fryijn6j2t49khorxu1wfmzlhkmp2rof5xt5e5d5iyc92tm8aoqpkw
Also, authentication works perfectly, and datastore.get() works completely fine. I am having issues with only datastore.set().
I am using:
"dependencies": {
"@ceramicnetwork/blockchain-utils-linking": "^2.13.0",
"@ceramicnetwork/http-client": "^2.21.0",
"@didtools/pkh-ethereum": "^0.3.0",
"@emotion/cache": "^11.10.7",
"@emotion/react": "^11.10.6",
"@glazed/datamodel": "^0.3.1",
"@glazed/did-datastore": "^0.3.2",
"@glazed/did-session": "^0.1.1",
"@mantine/core": "^6.0.6",
"@mantine/form": "^6.0.6",
"@mantine/hooks": "^6.0.6",
"@mantine/notifications": "^6.0.6",
"@rainbow-me/rainbowkit": "^0.12.7",
"@tabler/icons-react": "^2.14.0",
"did-session": "^2.0.1",
"eslint": "8.38.0",
"eslint-config-next": "13.3.0",
"ethers": "^5",
"key-did-provider-ed25519": "^3.0.0",
"key-did-resolver": "^3.0.0",
"next": "13.3.0",
"react": "18.2.0",
"react-dom": "18.2.0",
"wagmi": "^0.12.10"
}