geopython / pycsw

pycsw is an OGC CSW server implementation written in Python. pycsw fully implements the OpenGIS Catalogue Service Implementation Specification [Catalogue Service for the Web]. Initial development started in 2010 (more formally announced in 2011). The project is certified OGC Compliant, and is an OGC Reference Implementation. pycsw allows for the publishing and discovery of geospatial metadata via numerous APIs (CSW 2/CSW 3, OpenSearch, OAI-PMH, SRU). Existing repositories of geospatial metadata can also be exposed, providing a standards-based metadata and catalogue component of spatial data infrastructures. pycsw is Open Source, released under an MIT license, and runs on all major platforms (Windows, Linux, Mac OS X). Please read the docs at https://pycsw.org/docs for more information.
https://pycsw.org
MIT License
197 stars 153 forks source link

ERR_HTTP2_PROTOCOL_ERROR: -337 on /csw endpoint #954

Closed pvgenuchten closed 5 months ago

pvgenuchten commented 5 months ago

Description

When running a request to /csw endpoint of pycsw default docker (with http2 enabled and nginx ingress), the browser (firefox, chrome) throws a ERR_HTTP2_PROTOCOL_ERROR: -337 (chrome) or ns_error_net_partial_transfer (firefox)

I'm not sure what's going on, this error did not occur on a docker image from some months ago

Various reports indicate that it is caused by an unexpected header, such as https://www.rhymewithgravy.com/2016/08/23/Beware-the-Connection-Header-in-HTT-P.html

Environment

Steps to Reproduce

pvgenuchten commented 5 months ago

I just noticed on docs:

gzip_compresslevel: gzip compression level, lowest is 1, highest is 9. Default is off. NOTE: if gzip compression is already enabled via your web server, do not enable this directive (or else the server will try to compress the response twice, resulting in degraded performance)

with the new yaml encoded config, this slipped in