nft.storage icon indicating copy to clipboard operation
nft.storage copied to clipboard

NFT Storage client.store failing from server

Open KayAlbertus opened this issue 2 years ago • 4 comments

await client.store

works fine on localhost but once application is deployed and running on server one receives the following error :

TypeError: Cannot read properties of undefined (reading 'digest') at i.encode (63-54d8bd43e497b53e.js:1:137322) at i.digest (63-54d8bd43e497b53e.js:1:137004) at pr (63-54d8bd43e497b53e.js:1:193995) at 63-54d8bd43e497b53e.js:1:196437 at 63-54d8bd43e497b53e.js:1:66797 at Array.map () at t.exports (63-54d8bd43e497b53e.js:1:66789) at async 63-54d8bd43e497b53e.js:1:196781 at async t.exports (63-54d8bd43e497b53e.js:1:66170) at async br (63-54d8bd43e497b53e.js:1:194406)

Please could you assist team why would this be happening ?

KayAlbertus avatar Nov 17 '22 20:11 KayAlbertus

Hello Team Any Feedback on the above ?

KayAlbertus avatar Nov 29 '22 20:11 KayAlbertus

Hi @KayAlbertus

Can you provide any more information? A code snippet (or an example repository), as well as how your bundling is being done would be appreciated to give some help

vasco-santos avatar Dec 05 '22 15:12 vasco-santos

I had the same problem, this was the solution: https://stackoverflow.com/questions/57146558/typeerror-digest-of-undefined-in-development-environment

Hilicot avatar Feb 23 '23 18:02 Hilicot

I had the same problem, this was the solution: https://stackoverflow.com/questions/57146558/typeerror-digest-of-undefined-in-development-environment

I think it just explain the problem. But how can I set my dev server as a secure origin?

xuht724 avatar May 06 '23 07:05 xuht724

Closing as this ticket . If you still need support, please re-open this issue and provide more detail. Thanks!

elizabeth-griffiths avatar Apr 25 '24 12:04 elizabeth-griffiths