An error occurred while fetching the blob

We are reading a React JS Component and passing it to our model to write the Unit Test Cases. The Component is located in a different directory. When we execute the code it throws us an error An error occurred while fetching the blob

The Component we are trying to pass is part of a different project built on Node Version 14.

Is there any resolution to it?

1 Like

Hi @YasirRao
to download files from huggingface you can switch the url from .../blob/... to .../resolve/... no other changes are required and you can download the file directly.
let me know how this goes

2 Likes