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
Firebase - Image Component Images Fail on Read with 500 Error #23122
Comments
This comment has been minimized.
This comment has been minimized.
1 similar comment
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@classic-massok Please don't bump issues repeatedly 🙏 |
Hello, I wanted to try and provide some help so I did some testing. Unfortunately, I was not able to reproduce the error. I followed the example as given. Locally, everything worked fine, footer images properly displaying. I needed to make some changes in order to deploy to Firebase*, but afterwards it still worked fine. Are there any other details you can give about your process? Does it work on a local server? Additionally, these may be of assistance if you have not already seen them: *Disclaimer: In order to properly deploy the app as is in the example, I would have had to upgrade my Firebase project to the Blaze version which I did not want to do. In order to avoid this I converted the example to be fully static by taking out the blog rendering code, exporting it to the |
I'm facing the same issue, any temporary fixes? |
Have you checked the amount of memory allocated to your application? |
I am also facing the same issue, still looking for resolutions on how to fix it. Will report back. |
Ran into the same issue after adding a
Also, I saw that #10111 was closed, but wouldn't this be a potential solution? |
i'm also facing the same issue, (Next.js v12 Node.js v12) Solution: If you need an optimized image file, you can use a plugin "next-optimized-images" during build. |
Based on #23122 (comment) and since the OP's example is not coming from our examples repo, I am going to close this. If you have an issue with one of the examples in the repo, please open a separate case for that. |
This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
What example does this report relate to?
https://github.com/jthegedus/firebase-gcp-examples/tree/main/functions-nextjs
What version of Next.js are you using?
10.0.8
What version of Node.js are you using?
12.0.0
What browser are you using?
Chrome
What operating system are you using?
n/a
How are you deploying your application?
Firebase
Describe the Bug
When hosting the example, images do not render and fall back to the alt text instead. They fail with a 500 error that is shown below in repro steps. From what I can tell, the image component is trying to unlink an existing symlink to the cache (assuming to create a new cache entry?) and that is failing due to read_only permissions allowed on folders in google cloud (expect for
/tmp
.)Expected Behavior
Images should be loaded w/o issue using the function redirect.
To Reproduce
unlink
commandThis is my first time using Next.js and Firebase, so I am very aware that this could be user error. I have read through https://github.com/vercel/next.js/issues/6275?ref=oo.t9t.io and related issues to see if I could find an answer, but have had no luck.
The text was updated successfully, but these errors were encountered: