gisapp icon indicating copy to clipboard operation
gisapp copied to clipboard

GetPrint return 500 HTTP error

Open hcwk opened this issue 4 years ago • 3 comments

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?

hcwk avatar Jun 25 '20 03:06 hcwk

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 avatar Jun 26 '20 08:06 uprel

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

hcwk avatar Jul 28 '20 08:07 hcwk

I don't have enough information to help here.

uprel avatar Jul 28 '20 09:07 uprel