[MapServer-users] HTTP/2 Protocol Error MS Demo server

Just van den Broecke justb4 at gmail.com
Wed Mar 29 06:04:56 PDT 2023


Sorry for posting twice. Thought I used the wrong email address 
initially, but someone let me through. Responding from the adress I have 
subscribed.

I found a workaround at the pygeoapi OGR Provider side (which functions 
as a WFS client and accepts GDAL config settings):

                 'GDAL_HTTP_VERSION': '1.1'

forcing the curl-lib in GDAL/OGR to use HTTP 1.1 (i.s.o. 2).
Basically the same as "curl --http1.1 ....", as below.

Still, I think a (config) fix is needed on the MS demo server frontend, 
which runs nginx AFAICS.

Best,

Just van den Broecke

On 29/03/2023 12:35, Just van den Broecke wrote:
> Hi,
> 
> In the pygeoapi CI on GitHub we experience suddenly an error in the OGR 
> Provider that connects via WFS to the MapServer demo server. The problem 
> has to do with HTTP/2 on a Ubuntu 20.04 system.
> 
> Error is like:
> "Failure, Msg: HTTP/2 stream 0 was not closed cleanly: PROTOCOL_ERROR 
> (err 1)"
> 
> I can trigger the same error with curl on a Ubuntu 20.04 LTS (used by 
> the GH CI)
> 
>   curl -v  https://demo.mapserver.org/cgi-bin/wfs
> 
> * TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
> * old SSL session ID is stale, removing
> * Connection state changed (MAX_CONCURRENT_STREAMS == 128)!
> * http2 error: Invalid HTTP header field was received: frame type: 1, 
> stream: 1, name: [upgrade], value: [h2,h2c]
> * HTTP/2 stream 0 was not closed cleanly: PROTOCOL_ERROR (err 1)
> * stopped the pause stream!
> * Connection #0 to host demo.mapserver.org left intact
> curl: (92) HTTP/2 stream 0 was not closed cleanly: PROTOCOL_ERROR (err 1)
> 
> 
> Forcing HTTP 1.1 gets rid of the error:
> 
> curl -v  --http1.1 https://demo.mapserver.org/cgi-bin/wfs
> 
> So it doesn't seem pygeoapi nor GDAL-related. Looks more like this 
> (Apache) problem:
> https://serverfault.com/questions/937253/https-doesnt-work-with-safari
> 
> Best,
> 
> --Just
> 
> Just van den Broecke
> _______________________________________________
> MapServer-users mailing list
> MapServer-users at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users



More information about the MapServer-users mailing list