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
Filebase API key isn't being set correctly in the worker-service resulting in error during IPFS upload.
Step to reproduce
Steps to reproduce the behavior:
Set env config to the following values:
IPFS_TIMEOUT="720" # seconds
IPFS_PROVIDER="filebase" # valid options: 'filebase', 'web3storage', 'local'
IPFS_STORAGE_KEY="<your API key>" # only valid for web3storage provider; ignored in other cases
IPFS_STORAGE_PROOF="..." # only valid for web3storage provider; ignored in other cases
IPFS_PUBLIC_GATEWAY='https://<your-three-words>.myfilebase.com/ipfs/${cid}'
IPFS_NODE_ADDRESS="http://ipfs-node:5001" # only valid for local provider; ignored in other cases
Launch Guardian (in my case v2.24.1)
Perform any action that results in IPFS upload
Determine it didn't work
Expected behavior
An empty Filebase bucket should get at least 1 entry after performing an action that incurs an IPFS upload such as publishing a policy.
Screenshots
I "fixed" it by hard coding the API key as a string in the file worker-service/src/api/ipfs-client-class.ts:
case IpfsProvider.FILEBASE: {
let testClient = new FilebaseClient({ token: '<token>' } as any)
cid = await testClient.storeBlob(new Blob([file]))
break;
}
In the original code the client is created in a different section of the code, like this: client = new FilebaseClient({token: this.options.filebase} as any)
I suspect simply the this.options.filebase reference isn't reading the config value properly.
The text was updated successfully, but these errors were encountered:
Problem description
Filebase API key isn't being set correctly in the worker-service resulting in error during IPFS upload.
Step to reproduce
Steps to reproduce the behavior:
Expected behavior
An empty Filebase bucket should get at least 1 entry after performing an action that incurs an IPFS upload such as publishing a policy.
Screenshots
I "fixed" it by hard coding the API key as a string in the file
worker-service/src/api/ipfs-client-class.ts
:In the original code the client is created in a different section of the code, like this:
client = new FilebaseClient({token: this.options.filebase} as any)
I suspect simply the
this.options.filebase
reference isn't reading the config value properly.The text was updated successfully, but these errors were encountered: