<div dir="ltr">I'm trying to configure a custom grid in mapproxy but almost every configuration I've tested results in a 500 Internal Server Error with no information in the log when requesting a GetCapabilities response. I'll post the complete config below, but this is the problem section:<div><br></div><div>grids:<br>  custom_grid:<br>    base: GLOBAL_GEODETIC<br>    srs: EPSG:4269<br></div><div><br></div><div>custom_grid is referenced by a cache whose source is a WMS service that does support EPSG:4269. I've tried using a range of EPSG codes taken from the upstream WMS's SRS list and they all fail in the same way. While testing this issue I only have a single layer, source, cache, and grid.</div><div><br></div><div>If I set the grid srs property to EPSG:4326, EPSG:3857, EPSG:900913, or EPSG:102100 I get the expected GetCapabilities document. Anything other than these somewhat standard values throws the error. I have tried removing and changing the 'base' property but this made no difference.</div><div><br></div><div>In trying to understand the issue I reviewed the mapproxy source and saw that by setting MAPPROXY_USE_PYPROJ and installing pyproj (using version 1.9.6 thanks to <a href="https://github.com/mapproxy/mapproxy/issues/417">this issue</a>) I can use pyproj instead of libproj. However this also made no difference.</div><div><br></div><div>Can anyone tell me what might be causing the error when an uncommon srs property is used in the grid and how I might address it? Any help much appreciated!</div><div><br></div><div>---------------</div><div>Full config (some parts omitted for brevity):</div><div><br></div><div>services:<br>  wms:<br>    srs: [EPSG:4267, ..., EPSG:42303]<br>    versions: [1.1.1, 1.3.0]<br>layers:<br>- name: Canadian_15m_CDEM<br>  sources: [Canadian_15m_CDEM_cache]<br>  title: Canadian 15m CDEM<br>caches:<br>  Canadian_15m_CDEM_cache:<br>    cache:<br>      directory: /srv/mapproxy/cache_data/goc/<br>      directory_layout: reverse_tms<br>      type: file<br>    grids: [custom_grid]<br>    sources: [Canadian_15m_CDEM_src]<br>sources:<br>  Canadian_15m_CDEM_src:<br>    concurrent_requests: 0<br>    on_error:<br>      404:<br>        cache: false<br>        response: transparent<br>    req:<br>      layers: WMS-Elevation<br>      transparent: true<br>      url: <a href="http://maps.geogratis.gc.ca/wms/elevation_en?service=wms">http://maps.geogratis.gc.ca/wms/elevation_en?service=wms</a><br>    type: wms<br>grids:<br>  custom_grid:<br>    base: GLOBAL_GEODETIC<br>    srs: EPSG:4269<br></div><div><br></div><div><br></div></div>