Same error with this also
it worked for me, did you properly set the master key?
f = await imageFile.saveIPFS(null,{useMasterKey: true});
error is shown at this line
from where you are taking test_file and bae64 value
test_file is the name that I gave it, it is hardcoded, base64 is the base64 contents of a buffer that I used
you have to know those values in advance depending on your use case, that is an example for hardcoded values
you can also use some debugging to see what are the values in your case, to see if they are the expected values
1 Like