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

GetPrint return 500 HTTP error #120

Open
hcwk opened this issue Jun 25, 2020 · 3 comments
Open

GetPrint return 500 HTTP error #120

hcwk opened this issue Jun 25, 2020 · 3 comments

Comments

@hcwk
Copy link

hcwk commented Jun 25, 2020

I am using Qgis server 3.4 on Ubuntu18.04.

On sample hello project, when I tried printing map by pressing 'print map' button, I get 500 HTTP error.

request query is below

http://ip.address/proxy/helloworld?SERVICE=WMS&VERSION=1.3&REQUEST=GetPrint&FORMAT=pdf&EXCEPTIONS=application/vnd.ogc.se_inimage&TRANSPARENT=true&SRS=EPSG%3A3857&DPI=300&TEMPLATE=Composer%201&map0%3Aextent=-7103691.3%2C-306285.5%2C-6996188.7%2C-245284.1&map0%3Ascale=500000&map0%3Arotation=0&map0%3Agrid_interval_x=10000&map0%3Agrid_interval_y=10000&LAYERS=OpenStreetMap_d1dfedd4_a6e0_40dd_b449_36a7a21ab36b%2Ccountry20131022151106556%2Chello20131022151106574&description=&title=

I am guessing this occurs because I am using eqwc under company proxy.
I am setting HTTP_PROXY variable and I am sure it is working correctly.

Opening hello.qgs using local QGIS application and exporting pdf file using print-composer working without any problems.

Could you please help resolve this issue?

@uprel
Copy link
Member

uprel commented Jun 26, 2020

I'm not sure about proxy, but if you can open helloworld project inside web client, then also printing should work. Did you make any changes in code?

Also make sure you have latest version of code and gisapp database. I have tested it and it works.

@uprel uprel added the question label Jun 26, 2020
@hcwk
Copy link
Author

hcwk commented Jul 28, 2020

Thank you for your reply uprel.

We ended up creating a MapProxy server so that we can get through the proxy.

May be we needed to set proxy to qgis server... I did but no luck

@uprel
Copy link
Member

uprel commented Jul 28, 2020

I don't have enough information to help here.

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