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

Proxy provider produces errors when served an empty tile #24

Open
jpolchlo opened this issue Aug 8, 2017 · 0 comments
Open

Proxy provider produces errors when served an empty tile #24

jpolchlo opened this issue Aug 8, 2017 · 0 comments

Comments

@jpolchlo
Copy link

jpolchlo commented Aug 8, 2017

I set up a proxy provider to serve a set of tiles that cover the continental US. Requests for tiles outside the covered area are responded to with a 204 status code (correct response, empty result). The proxy provider attempts to handle the empty image as if it contained data and raises an exception leading to a spray of stack traces and 500 errors to the console. Returning a 200 with an empty image gives the same result. Responding with a 404 produces a similar torrent of console messages, but 404s instead of 500s.

There ought to be a way to communicate to the proxy provider that a tile is empty. I would suggest that such tiles respond with 204, and ktile should handle these responses correctly.

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