Skip to content

No data (vector tile) from WMS to GeoWebCache and error response: 400: All backends (1) failed. Last request: 'http://localhost:8881/geoserver/wms?'.  #1307

Open
@vitalus

Description

I would consider the following behavior to be handled better (or in more flexible way):

If WMS service returns no data (no vector features are in tile's bounds to make a vector tile), it's HTTP response 200 with responseLength = -1 from WMS to GeoWebCache.

In this case a GeoWebCacheException is thrown and GWC returns HTML with an underlying message.

I would like to see the following options to be supported for this scenarios:

  • Return HTTP 200 but with no data (no HTML or whatever needed, a message is in log file of GeoServer)
  • Return HTTP 400 but with no data (no HTML or whatever needed, a message is in log file of GeoServer)
  • Return HTTP XXX but definitely I do not like to expose "http://localhost.8881...." outside... It's internal stuff...
  • May be something else.

In the end I am not sure how from HTTP point of view to "represent" such situation (from server to client).

As it's open source, I myself played with a code just to customize response being returned by GWC.. minor improvement.

Any opinions how to make it flexible, probably with some configuration options (for GWC behavior) ?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions