You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Which area(s) of Hypercerts are affected? (leave empty if unsure)
SDK
To Reproduce
Use the SDK in an upstream repo like frontend
Store some data with sdk.storeData
Get the data with sdk.getData.
You'll get an exception inside getData at await res.files();
Describe the Bug
I'm not totally sure what's going on here, since we do have a unit test that passes. But it seems to me like web3.storage client.get doesn't know what to do when we call client.put with wrapWithDirectory: false.
This requires more digging, but I'm deprioritizing it until we have more time. I think we might need to ask the web3.storage team what's going on here...
As a workaround, just use sdk.getMetadata with the CID. It should work.
Expected Behavior
Should just work
The text was updated successfully, but these errors were encountered:
Which area(s) of Hypercerts are affected? (leave empty if unsure)
SDK
To Reproduce
frontend
sdk.storeData
sdk.getData
.You'll get an exception inside
getData
atawait res.files()
;Describe the Bug
I'm not totally sure what's going on here, since we do have a unit test that passes. But it seems to me like web3.storage
client.get
doesn't know what to do when we callclient.put
withwrapWithDirectory: false
.This requires more digging, but I'm deprioritizing it until we have more time. I think we might need to ask the web3.storage team what's going on here...
As a workaround, just use
sdk.getMetadata
with the CID. It should work.Expected Behavior
Should just work
The text was updated successfully, but these errors were encountered: