Problem Profile Model Composite ComposeDB

Dear Ceramic Developing Colleagues,

My name is Laura and I am developing a very simple React App to read and create a DID in Ethereum. One button to read the DID, another one to create it. My initial inspiration is this video: Sign In with Ethereum and Decentralized Identity with Ceramic, IDX, React, and 3ID Connect - YouTube . But basically, most of the code in the video is obsolete and I have been working the last 4 weeks to update it.

My code can be found here: GitHub - Laurammf/CeramicDID: Partially inspired on https://gist.github.com/dabit3/ba326e47e4882073bd6342dc1998fd16

I would have some questions for you:

  1. Which APIs/libraries do I need to read and/or create a DID? For the whole process, including the authentication. Am I missing any API in my code?
  2. Is there any developer here that would be willing to make a video-call (1 or 2 hours) with me to walk me through this process and teach me how to use ceramic to retrieve and to create a DID? Obviously, that would be paid. I have some experience in coding and I already have one code that you can check on Github.

Currently, I am having a problem with the data model: kjzl6hvfrbw6c7keo17n66rxyo21nqqaa9lh491jz16od43nokz7ksfcvzi6bwc from the documentation: Your first composite | ComposeDB on Ceramic
When I run the app, the error message on the console is the following:

The problem happens when the line 93 of the App.js code is run:

const composite = await Composite.fromModels({
ceramic,
models: [‘kjzl6hvfrbw6c7keo17n66rxyo21nqqaa9lh491jz16od43nokz7ksfcvzi6bwc’],
})

I am running my local node, but the same problem happens when I use “https://gateway-clay.ceramic.network” as endpoint.

On my node, the following error message shows:

Please someone help me, I desperately need to make this app work to be able to finish my bachelor thesis. The thesis is not about the code, the code is just the final step, like an illustrative implementation of how an interchain DID mechanism would look like. I can give you more details about it in the call. You can write to me in anikofon@gmail.com .

Kind regards,
Laura

Can you run ceramic -v and composedb --version?

Hello, from ceramic I have the version 2.29.0 and composedb --version is not working. Despite the fact that I have composdb cli installed, composedb commands do not work.
Here is a copy of my package.json:

  {
  "name": "ethsinv2",
  "version": "0.1.0",
  "private": true,
  "dependencies": {
    "@3id/connect": "^0.1.6",
    "@3id/service": "^0.2.6",
    "@ceramicnetwork/3id-did-resolver": "^1.2.7",
    "@ceramicnetwork/http-client": "^1.0.7",
    "@ceramicstudio/idx": "^0.12.1",
    "@composedb/cli": "^0.3.0",
    "@composedb/client": "^0.3.0",
    "@didtools/pkh-ethereum": "^0.1.0",
    "@self.id/3box-legacy": "^0.3.0",
    "@self.id/web": "^0.5.0",
    "@testing-library/jest-dom": "^5.11.4",
    "@testing-library/react": "^11.1.0",
    "@testing-library/user-event": "^12.1.10",
    "3id-connect": "^1.0.0-alpha.15",
    "did-session": "^2.0.1",
    "dids": "^1.0.0",
    "ethers": "^5.7.2",
    "key-did-resolver": "^3.0.0",
    "react": "^18.2.0",
    "react-dom": "^18.2.0",
    "react-scripts": "5.0.1",
    "web-vitals": "^2.1.4",
    "web3modal": "^1.9.12"
  },
  "scripts": {
    "start": "react-scripts start",
    "build": "react-scripts build",
    "test": "react-scripts test",
    "eject": "react-scripts eject"
  },
  "eslintConfig": {
    "extends": [
      "react-app",
      "react-app/jest"
    ]
  },
  "browserslist": {
    "production": [
      ">0.2%",
      "not dead",
      "not op_mini all"
    ],
    "development": [
      "last 1 chrome version",
      "last 1 firefox version",
      "last 1 safari version"
    ]
  },
  "devDependencies": {
    "@composedb/devtools": "^0.3.0",
    "@composedb/devtools-node": "^0.3.0"
  },
  "browser": {
    "fs": false
  }
}


Can you upgrade all @composedb dependencies to ^0.4.0?

[edit] You might need to upgrade other dependencies as well. Check your dependencies against EthDenver2023Demo/package.json at main · ceramicstudio/EthDenver2023Demo · GitHub

Hello, I have updated almost all packages or put them into the same versions as in the link you have sent (EthDenver2023Demo/package.json at main · ceramicstudio/EthDenver2023Demo · GitHub).

Could you please take a look and see if you can help me?
The package @ceramicnetwork/http-client in the version 2.22.0 or 2.17.0 gives me problems with the instantiation of the ceramic client. I had to downgrade it back to 1.0.7 to make it work again.

{
“name”: “ethsinv2”,
“version”: “0.1.0”,
“private”: true,
“dependencies”: {
@3id/connect”: “^0.4.1”,
@3id/service”: “^0.2.6”,
@ceramicnetwork/3id-did-resolver”: “^2.18.0”,
@ceramicnetwork/http-client”: “^1.0.7”,
@ceramicstudio/idx”: “^0.12.2”,
@composedb/cli”: “^0.4.0”,
@composedb/client”: “^0.4.0”,
@didtools/pkh-ethereum”: “^0.1.0”,
@self.id/3box-legacy”: “^0.3.0”,
@self.id/web”: “^0.5.0”,
@testing-library/jest-dom”: “^5.11.4”,
@testing-library/react”: “^11.1.0”,
@testing-library/user-event”: “^12.1.10”,
“3id-connect”: “^1.0.0-alpha.15”,
“did-session”: “^1.0.0”,
“dids”: “^1.0.0”,
“ethers”: “^5.7.2”,
“key-did-resolver”: “^3.0.0”,
“react”: “^18.2.0”,
“react-dom”: “^18.2.0”,
“react-scripts”: “5.0.1”,
“web-vitals”: “^2.1.4”,
“web3modal”: “^1.9.12”
},
“scripts”: {
“start”: “react-scripts start”,
“build”: “react-scripts build”,
“test”: “react-scripts test”,
“eject”: “react-scripts eject”
},
“eslintConfig”: {
“extends”: [
“react-app”,
“react-app/jest”
]
},
“browserslist”: {
“production”: [
“>0.2%”,
“not dead”,
“not op_mini all”
],
“development”: [
“last 1 chrome version”,
“last 1 firefox version”,
“last 1 safari version”
]
},
“devDependencies”: {
@composedb/devtools”: “^0.3.0”,
@composedb/devtools-node”: “^0.3.0”
},
“browser”: {
“fs”: false
}
}

Before I downdrade http/client, I had this message;

Now I receive this message:

Any help is appreciated :slight_smile: