I'm trying to use Helia in a Node.js server environment. When I store files, I receive a CID without any issues. However, when I try to retrieve the JSON from the CID, I encounter the following error:
TypeError: Cannot read properties of undefined (reading 'code')
Hello Community,
I'm trying to use Helia in a Node.js server environment. When I store files, I receive a CID without any issues. However, when I try to retrieve the JSON from the CID, I encounter the following error:
TypeError: Cannot read properties of undefined (reading 'code')
Here is my code
Steps to Reproduce:
Expected Behavior:
Actual Behavior:
The server returns a TypeError: Cannot read properties of undefined (reading 'code').
Additional Context:
Node.js version: 18.17.1 Helia version: 4.2.3 Can anyone help me resolve this issue?
Thank you! 🙏