Root cause Error: incorrect header check
-
what is minimal jsreport ? Is that "jsreport.config.json" ?
-
a minimal jsreport export means an export file created by the import-export extension containing/selecting the needed entities to replicate the error (template, assets if any, or scripts if any), with the export we will be able to reproduce the bug for our investigation and eventually the bug fixing.
-
ah. in my case, we have many template run but log error only show like what i recommend in first post. So i dont know which template cost.
Can u tell me when and how to fix that error?
-
If you check the logs more in detail, you will be able to find the template which caused it.
There is typically a line like this2022-05-12T09:34:22.130Z - info: Rendering template { name: excel, recipe: xlsx, engine: handlebars, preview: false }
Followed by other logs from the particular rendering and then there will be also your warning. Note it is really just a warning, not an error, and you typically won't recognize the different output.
-
If you email me the pdf output that is causing this warning, I should be able to find out the reason.
-
Hello i find out that is when i save this image with .jpeg. And use jsreport to show it. It's cause the error.
-
I've tried to use the image but it works for me, could you share a workspace with the replicated problem?
https://playground.jsreport.net/w/anon/K6COeK7T
-
U can follow step:
- Use jsreport ver 2.10.0
- Generate my image (Save as JPEG, suggest: JFIF ) to b64
- create html image tag with source is my B64 Image
- Generate PDF from that HTML.
Check log.
-
Hm, I've tried the same and no warnings or errors in the log
-
OK. I try to install 2.11.0 or 3.5.0 and this error disapear.