-
Notifications
You must be signed in to change notification settings - Fork 27k
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
Image component can't work with contained non-latin symbols in src prop #19668
Comments
Yes, works on 10.0.3 and 10.0.4. |
looks like the problem fixed in 1.0.4 - I can't reproduce this error with version 1.0.4 |
I had the same issue so I did some further investigation and it is not fixed as of 10.0.6. The problem only seem to appear in production (when running |
fixes #27210 maybe related: #19668 currently, the image optimizer returns 400 when an image url contains non-ascii characters. this pr uri-encodes the `url` query parameter to fix it. also see #27210 (comment) ## Bug - [x] Related issues linked using `fixes #number` - [x] Integration tests added - [ ] Errors have helpful link attached, see `contributing.md` ## Feature - [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR. - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Documentation added - [ ] Telemetry added. In case of a feature if it's used or not. - [ ] Errors have helpful link attached, see `contributing.md` ## Documentation / Examples - [ ] Make sure the linting passes
@emarforio could you check if you can still reproduce this issue in the current |
@stefanprobst I can confirm that it works with the canary version. I created a repo as a PoC with the two different versions if you want to test it as well: https://github.com/emarforio/nextjs-nonascii-test |
Thanks! I'll close this as a duplicate of #27210 which was fixed in v11.0.2-canary.25 As a reminder, you can try it out canary with |
fixes vercel#27210 maybe related: vercel#19668 currently, the image optimizer returns 400 when an image url contains non-ascii characters. this pr uri-encodes the `url` query parameter to fix it. also see vercel#27210 (comment) ## Bug - [x] Related issues linked using `fixes #number` - [x] Integration tests added - [ ] Errors have helpful link attached, see `contributing.md` ## Feature - [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR. - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Documentation added - [ ] Telemetry added. In case of a feature if it's used or not. - [ ] Errors have helpful link attached, see `contributing.md` ## Documentation / Examples - [ ] Make sure the linting passes
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. |
Bug report
Describe the bug
If src prop of next/image component contained non-Latin (Cyrillic in the followed example) symbols, GET request to this resource are always throw the 404 error
To Reproduce
Expected behavior
Got the image
Screenshots
Screenshot added
System information
Additional context
None
The text was updated successfully, but these errors were encountered: