Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 opened this issue Aug 16, 2024 · 1 comment

Comments

@vitalus
Copy link

vitalus commented Aug 16, 2024

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) ?

@vitalus
Copy link
Author

vitalus commented Aug 16, 2024

May be the problem originates from WMS that sends HTTP 200 with no data in vector tile... What if WMS should response with HTTP 204 and then GWC would handle this properly as well...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant