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

MediaRequestProtection: An invalid/missing hash value was encountered #56

Closed
gitnewbie33 opened this issue Jan 17, 2020 · 3 comments
Closed
Labels

Comments

@gitnewbie33
Copy link

gitnewbie33 commented Jan 17, 2020

Hi,

I am working on a project with sitecore 9.2 and JSS. I installed Dianoga 4.0.0 for image optimization in development environment.

Some images are getting optimized properly, but for other images I get below error in logs -

ERROR MediaRequestProtection: An invalid/missing hash value was encountered. The expected hash value: 887E26BCD8C75EAB53BDC584A335E9C1. Media URL: /-/jssmedia/projectname/data/media/global/img/site/banners/clip-art/invent-make-change.ashx?h=637&w=1440&hash=F44F69ED2F9DA6026E2C0BE77DA18BD5, Referring URL: http://hostname/en/about

Can you please suggest resolution for this error? Or should I use a different version of Dianoga with Sitecore 9.2 and JSS?

@markgibbons25
Copy link
Collaborator

Hi @gitnewbie33 if you have enabled webp, did you override the Sitecore.JavaScriptServices.Media.MediaRequestHandler as mentioned in the readme? Also I've just released 5.0 beta with a lot of bug fixes - would appreciate if you give this a try.

@markgibbons25
Copy link
Collaborator

I found an issue that might have been causing this - fixed in 5.0 RC2

@markgibbons25
Copy link
Collaborator

See #65

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

No branches or pull requests

2 participants