[MapProxy] invalid wms request from mapproxy

Travis Kirstine traviskirstine at gmail.com
Thu Nov 19 11:54:07 PST 2015


Nothing in the error mapproxy log (debug).  The error is coming upstream
MapServer WMS

The WMS request coming from MapProxy is defaulting to the bbox of the
source with a width / height of 1 px at higher zoom ().

 /cgi-bin/mapserver_wms?styles=&format=image%2Fpng&height=1&bbox=-11496569.213,5478916.2662,-11494537.6069,5484007.27162&transparent=True&layers=BHP&service=WMS&width=1&request=GetMap&srs=EPSG%3A3857&version=1.1.1

This request is causing MapServer to crash.  I think the crash is due to
the SCALETOKEN parameter in my MapServer mapfile, I'm guessing MS is having
a issue determining the scale
for a 1x1 px image

If I remove the coverage from my MapProxy source everything works fine.

BTW thanks for the min_res info





The request is causing MapServer to crash

On 18 November 2015 at 02:13, Oliver Tonnhofer <olt at omniscale.de> wrote:

> Hi Travis,
>
> can you post the relevant parts of the console output/logs?
> You can also check out the min_res options. This prevents MapProxy from
> making requests in in the first zoom levels.
>
> Regards,
> Oliver
>
> --
> Oliver Tonnhofer  | Omniscale GmbH & Co KG  | http://omniscale.com
> OpenStreetMap WMS and tile services         | http://maps.omniscale.com
>
>
>
>
> > On 16.11.2015, at 20:37, Travis Kirstine <traviskirstine at gmail.com>
> wrote:
> >
> > I noticed a bunch of 500 errors being generated in MapProxy because the
> source  MapServer WMS is not generating images.  It appears some cases
> MapProxy will generate a WMS request with a width=1 and height=3 px.  I
> think this is related to the source coverage (bbox) in some way.  The
> source has a fairly small bbox which could be the problem? If I remove the
> coverage from the source wms it works
> >
> >
> /cgi-bin/mapserver_wms?styles=&format=image%2Fpng&height=1&bbox=-11496569.213,5478916.2662,-11494537.6069,5484007.27162&transparent=True&layers=BHP&service=WMS&width=1&request=GetMap&srs=EPSG%3A3857&version=1.1.1
> >
> > The odd thing is MapProxy is working fine when looking at the layer
> between zoom 19-7 however once I zoom out between 0-6 the request start to
> fail
> >
> > MP Stuff:
> >
> >   BHP_cache:
> >     grids: [spherical_mercator]
> >     sources: [BHP_wms]
> >     meta_buffer: 100
> >     meta_size: [4,4]
> >     format: image/png
> >
> >   BHP_wms:
> >     type: wms
> >     req:
> >       url: http://localhost/cgi-bin/mapserver_wms?
> >       layers: BHP
> >       transparent: true
> >     coverage:
> >       bbox:
> [-11496569.2130269,5478916.26620355,-11494537.6069391,5484007.27161516]
> >       srs: 'EPSG:3857'
> >
> >
> >
> >
> >
> >
> >
> > _______________________________________________
> > MapProxy mailing list
> > MapProxy at lists.osgeo.org
> > http://lists.osgeo.org/mailman/listinfo/mapproxy
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapproxy/attachments/20151119/65ec1a59/attachment.html>


More information about the MapProxy mailing list