简体   繁体   English

Django和Geraldo Reports错误pdf无法正确显示

[英]Django & Geraldo Reports error pdf not displayed correctly

I'm using Django 1.6.1 and Geraldo Reports 0.4.17, Firexos 24.3.0. 我正在使用Django 1.6.1和Geraldo Reports 0.4.17,Firexos 24.3.0。 Both in DEV & production environments I get the error "This PDF document might not be displayed correctly. In production,using Nginx 1.0.15 and gunicorn 18.0. Only browser used is Firefox. 在DEV和生产环境中,我都收到错误消息“此PDF文档可能无法正确显示。在生产中,使用Nginx 1.0.15和gunicorn 18.0。仅使用的浏览器是Firefox。

If I run 2-3 reports or run one, then go any page and then run another report or even same as before, error comes up. 如果我运行2-3个报告或运行一个报告,然后转到任何页面,然后运行另一个报告,甚至与以前相同,则会出现错误。 If I restart Nginx & gunicorn, any report shows up perfect, until error again. 如果我重新启动Nginx&gunicorn,任何报告都将显示完美,直到再次出错。

Checked for errors on nginx access & error logs, guninconr & django logs and there is no error reported to this issue. 检查了Nginx访问和错误日​​志,guninconr和django日志中的错误,并且没有报告此问题的错误。

When calling the reports I was originally using the standard 'generate_by method' and then when seeing this report in DEV env, changed it to 'generate_under_process_by' method. 调用报告时,我最初使用的是标准的“ generate_by方法”,然后在DEV env中看到此报告时,请将其更改为“ generate_under_process_by”方法。 Unfortunately, that does not help. 不幸的是,这无济于事。

How can I troubleshoot / solve this issue? 如何解决/解决这个问题? Is there something I am missing? 我有什么想念的吗?

Thanks. 谢谢。

I realized I was using the same HTTP response variable for all reports. 我意识到我对所有报告都使用相同的HTTP响应变量。 I must define its value inside each report, even if it's repetitive. 我必须在每个报告中定义它的值,即使它是重复的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM