Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Shivam2101s opened this issue Jun 6, 2023 · 2 comments
Open
Labels
help wanted Extra attention is needed

Comments

@Shivam2101s
Copy link

Shivam2101s commented Jun 6, 2023

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
@Shivam2101s Shivam2101s changed the title Unable to GET media from GCS bucket Unable to GET media from GCS bucket and add folder in media library Jun 6, 2023
@Lith
Copy link
Collaborator

Lith commented Jun 7, 2023

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,

@Lith Lith added the help wanted Extra attention is needed label Jun 7, 2023
@Shivam2101s
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants