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

Can't use subfolder with base64 encoded requests #233

Closed
jcneiss opened this issue Sep 11, 2020 · 4 comments
Closed

Can't use subfolder with base64 encoded requests #233

jcneiss opened this issue Sep 11, 2020 · 4 comments

Comments

@jcneiss
Copy link

jcneiss commented Sep 11, 2020

With the latest version (v5.0.0), use of subfolder with base64 requests is no longer working.

Type of request:
https://<distributionname>.cloudfront.net/<subfolder>/<base64encodedrequest>

I get this error message:
status: 400, code: 'DecodeRequest::CannotDecodeRequest', message: 'The image request you provided could not be decoded. Please check that your request is base64 encoded properly and refer to the documentation for additional guidance.'

It works with 4.2 version.

I think it's because of the fix done for the issue reported here : #194

@jcneiss jcneiss added the bug label Sep 11, 2020
@beomseoklee
Copy link
Member

@jcneiss Thanks for contacting us and I'm sorry to hear what worked does not work on the latest version.
May I know why you used subfolder in the URL?

@jcneiss
Copy link
Author

jcneiss commented Sep 11, 2020

For a domain, I have different origins on cloudfront, and cloudfront behaviors are based on the subfolder to choose the correct origin.
One of those origins is the api-gateway of serverless-image-handler.

@github-actions
Copy link

This issue has not received a response in a while. If you want to keep this issue open, please leave a comment below and auto-close will be canceled.

@github-actions
Copy link

This issue was closed because it has been inactive for 7 days since being marked as closing-soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants