strapi-community / strapi-provider-upload-google-cloud-storage

Google Cloud Storage Upload Provider for Strapi
MIT License
211 stars 94 forks source link

Unable to GET media from GCS bucket and add folder in media library #173

Open Shivam2101s opened 1 year ago

Shivam2101s commented 1 year ago

Describe the bug Uploading media is working fine, but will fetching images in the media library from the bucket gives 500

Error screenshot for fetching images from bucket

Screenshot 2023-06-06 at 3 51 47 PM

Error screenshot for adding folder

Screenshot 2023-06-06 at 6 21 06 PM

plugins.js file

Screenshot 2023-06-06 at 3 48 18 PM

middlewares.js file

Screenshot 2023-06-06 at 3 46 47 PM
Lith commented 1 year ago

Hello,

The problem describe has no relation with GCS. GCS is working fine and your configuration looks good.

I suggest you to check the error details on your strapi instance, but your problem is related with filters set in URL with GET files routing.

Have you try to debug the GET /files route first ?

Thanks,

Shivam2101s commented 1 year ago

Hello Lith, Yes tried debugging GET /files, and everything is the same as earlier, and no issues were found.

Is there anything else that I need to change ?

Thanks for your help