-
Notifications
You must be signed in to change notification settings - Fork 550
Getting http status code 502 instead of 404 for missing images #33
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
Comments
I think that the issue is related to a misspelled variable: https://github.com/awslabs/serverless-image-handler/blob/6a30bd785999bea6ba9dfb402bf550b2dd8f2f8f/source/image-handler/lambda_function.py#L216 replacing: Should fix the 502 error. |
Thank you for bringing this to our attention! We've got a fix in the pipeline for our next release. |
please see #41 which will fix this. |
release v3.1.0 has been pushed, closing the issue. |
hi
I am trying to access the file via cloudfront and that file does not exists in S3 bucket. I am getting 502 error code instead of 404 in my browser.
Is it the right expected response code from this service ?
Also if my original image not found, I want to return noImageFound.jpeg as a response. Is there anyway to do it ?
The text was updated successfully, but these errors were encountered: