<div dir="ltr">That was it. Thanks Even!<div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jun 1, 2023 at 2:09 AM Even Rouault <<a href="mailto:even.rouault@spatialys.com">even.rouault@spatialys.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Denis,<br>
<br>
You have to identify on which request this occurs<br>
<br>
Run with CPL_DEBUG=ON CPL_CURL_VERBOSE=ON<br>
<br>
This error is emitted when the server issues a response with a missing <br>
Content-Type header.<br>
<br>
Le 01/06/2023 à 01:52, Denis Rykov a écrit :<br>
> I'm getting "ERROR 1: Unexpected Content-Type: (null)" in the middle <br>
> of the ogrinfo output. What does this mean? I can adjust server <br>
> configuration but it is not clear which endpoint is failing because <br>
> apart from that message everything seems to be working fine.<br>
><br>
> $ ogrinfo OAPIF:<a href="http://localhost:8080/api/resource/6750/oapif/" rel="noreferrer" target="_blank">http://localhost:8080/api/resource/6750/oapif/</a> layer_6209<br>
> INFO: Open of `OAPIF:<a href="http://localhost:8080/api/resource/6750/oapif/" rel="noreferrer" target="_blank">http://localhost:8080/api/resource/6750/oapif/</a>'<br>
>       using driver `OAPIF' successful.<br>
><br>
> Layer name: layer_6209<br>
> Metadata:<br>
>   TITLE=Test layer<br>
> Geometry: Point<br>
> ERROR 1: Unexpected Content-Type: (null)<br>
> Feature Count: 26<br>
> Extent: (0.000000, 0.000000) - (110.275300, 49.493019)<br>
> Layer SRS WKT:<br>
> GEOGCRS["WGS 84",<br>
>     DATUM["World Geodetic System 1984",<br>
>         ELLIPSOID["WGS 84",6378137,298.257223563,<br>
>             LENGTHUNIT["metre",1]]],<br>
>     PRIMEM["Greenwich",0,<br>
>         ANGLEUNIT["degree",0.0174532925199433]],<br>
>     CS[ellipsoidal,2],<br>
>         AXIS["geodetic latitude (Lat)",north,<br>
>             ORDER[1],<br>
>             ANGLEUNIT["degree",0.0174532925199433]],<br>
>         AXIS["geodetic longitude (Lon)",east,<br>
>             ORDER[2],<br>
>             ANGLEUNIT["degree",0.0174532925199433]],<br>
>     ID["EPSG",4326]]<br>
> Data axis to CRS axis mapping: 2,1<br>
> num: Real (0.0)<br>
> link: String (0.0)<br>
> wikipedia: String (0.0)<br>
><br>
> _______________________________________________<br>
> gdal-dev mailing list<br>
> <a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
> <a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
<br>
-- <br>
<a href="http://www.spatialys.com" rel="noreferrer" target="_blank">http://www.spatialys.com</a><br>
My software is free, but my time generally not.<br>
<br>
</blockquote></div>