Solid fileclient.update is ok, but cannot read

I upload a file to Solid using the Solid file client update method.
I then go to the data brower and my file is there, Good!
tag6
I enter the url of my file in my browser : “https://okilele.solid.community/public/tag6.json” and the file is downloaded : Perfect !
At last I try to read the file with the very basic method :
FileClient.readFile(url).then( (body:any) => {
console.log(File content is : ${body}.);
}, (err:any) => console.log(err) );

and the file is not found, and no error, thrown.

Any idea ?

Edit: My mistake, wrong management of promises! Everything fixed if waiting for the callback…

@okilele wrotet: My mistake, wrong management of promises! Everything fixed if waiting for the callback…

Oh I’ve never done that. (in the last fifteen minutes) :smile: -)

1 Like