You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You will see the error below: {"status":500,"code":"RequestTypeError","message":"The file does not have an extension and the file type could not be inferred. Please ensure that your original image is of a supported file type (jpg, png, tiff, webp, svg). Refer to the documentation for additional guidance on forming image requests."}
Expected behavior
Serverless Image Handler should be able to show the JPEG formatted image.
Please complete the following information about the solution:
Version: 6.2.3
Region: us-east-1
Was the solution modified from the version published on this repository? No
If the answer to the previous question was yes, are the changes available on GitHub? -
Have you checked your service quotas for the sevices this solution uses? Yes
Were there any errors in the CloudWatch Logs? 2023-11-13T10:21:56.030Z d6a5bd10-5dae-486d-bb6a-5517cb59773a ERROR ImageHandlerError: The file does not have an extension and the file type could not be inferred. Please ensure that your original image is of a supported file type (jpg, png, tiff, webp, svg). Refer to the documentation for additional guidance on forming image requests. at _ImageRequest.getOriginalImage (/var/task/index.js:39154:13) at runMicrotasks (<anonymous>) at processTicksAndRejections (node:internal/process/task_queues:96:5) at async _ImageRequest.setup (/var/task/index.js:39101:29) at async Runtime.handler (/var/task/index.js:39476:30) { status: 500, code: 'RequestTypeError' }
Additional context
Original File:
The text was updated successfully, but these errors were encountered:
This error is popping up due to a missing JPEG file signature when we infer image types. We hope to include the fix in the next release, but in the meantime, you should be able to include the fix in your deployment by including the change from #489 and redeploying following the steps in the README.
Describe the bug
Some of JPEG images are not accepted for no reason?
To Reproduce
{"status":500,"code":"RequestTypeError","message":"The file does not have an extension and the file type could not be inferred. Please ensure that your original image is of a supported file type (jpg, png, tiff, webp, svg). Refer to the documentation for additional guidance on forming image requests."}
Expected behavior
Serverless Image Handler should be able to show the JPEG formatted image.
Please complete the following information about the solution:
2023-11-13T10:21:56.030Z d6a5bd10-5dae-486d-bb6a-5517cb59773a ERROR ImageHandlerError: The file does not have an extension and the file type could not be inferred. Please ensure that your original image is of a supported file type (jpg, png, tiff, webp, svg). Refer to the documentation for additional guidance on forming image requests. at _ImageRequest.getOriginalImage (/var/task/index.js:39154:13) at runMicrotasks (<anonymous>) at processTicksAndRejections (node:internal/process/task_queues:96:5) at async _ImageRequest.setup (/var/task/index.js:39101:29) at async Runtime.handler (/var/task/index.js:39476:30) { status: 500, code: 'RequestTypeError' }
Additional context

Original File:
The text was updated successfully, but these errors were encountered: