Forbidden error while using repo clone script

Describe your question/issue in detail

I'm using the repo-clone-script and it's almost working, but for some reason, I'm getting the following error during the asset download process:

Error downloading https://images.prismic.io/finxact-learning-dev-fast/YzQ3NThlMTEtZDEzMy00MDA3LTg2ZGMtNGNmMWFhZmUxZjY2_ndvjy2q2zmmtotu0ny00mmewlwjkzdatymu2ntexmzizodu1_1ef1c411-4d12-4f07-af9e-a510683d8be7_cody-silver-ekb9coaiudo-unsplash.jpg&rect=0,7,1920,1008&w=2400&h=1260: Failed to fetch https://images.prismic.io/finxact-learning-dev-fast/YzQ3NThlMTEtZDEzMy00MDA3LTg2ZGMtNGNmMWFhZmUxZjY2_ndvjy2q2zmmtotu0ny00mmewlwjkzdatymu2ntexmzizodu1_1ef1c411-4d12-4f07-af9e-a510683d8be7_cody-silver-ekb9coaiudo-unsplash.jpg&rect=0,7,1920,1008&w=2400&h=1260: Forbidden

This derails the download process and leaves me with an incomplete set of images to work with, which breaks a lot of my document uploads because the images are missing.

The images are AVIFs — could that be breaking the script?

I also found that dialing up one of these urls directly results in a 403 error, see:
https://images.prismic.io/finxact-learning-dev-fast/YzQ3NThlMTEtZDEzMy00MDA3LTg2ZGMtNGNmMWFhZmUxZjY2_ndvjy2q2zmmtotu0ny00mmewlwjkzdatymu2ntexmzizodu1_1ef1c411-4d12-4f07-af9e-a510683d8be7_cody-silver-ekb9coaiudo-unsplash.jpg&rect=0,7,1920,1008&w=2400&h=1260

Is there a way to resolve this error?

Thank you!

Hey team,

Could you share where you found the recommendation to use this repository? It's not maintained by the education team. I recommend sticking with the sample projects included when creating a repository.

Hi there — Alaina from the Prismic team recomemnded this repo.

Hi Robert,

I'm Alex part of the Prismic Solution Engineering team.
We are maintaining that repo.

I just had a look and it seems the image urls are malformed, hence the forbidden, they don't have a "?".

The script was not removing all the url params added when cropping from the url, which it should, I fixed that.

Let me know if it know works on your side!
Thanks
Alex