You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
Per the OGC API - TIles spec, tiles that are not found are supposed to return a 400 or 404 status. pygeoapi does this, but at the cost of logging a full error stack for every tile requested that does not exist.
Steps to Reproduce
Run pygeoapi with a Tile provider and log level set to error.
View tile map, in and out of where there map be tiles.
View pygeoapi logs
Expected behavior
pygeoapi is able to return the proper HTTP status without spamming the logs for an expected behavior.
Screenshots/Tracebacks
500+ errors from last 15 minutes
Environment
OS: all
Python version: 3.10
pygeoapi version: 0.20.dev0
Additional context
pygeoapi tile providers could consistently throw ProviderTileNotFoundError which can be handled in api/tiles.py to gracefully return such an error. Not sure it is wise to rely on ProviderTileNotFoundError.
The text was updated successfully, but these errors were encountered:
Description
Per the OGC API - TIles spec, tiles that are not found are supposed to return a 400 or 404 status. pygeoapi does this, but at the cost of logging a full error stack for every tile requested that does not exist.
Steps to Reproduce
Expected behavior
pygeoapi is able to return the proper HTTP status without spamming the logs for an expected behavior.
Screenshots/Tracebacks

500+ errors from last 15 minutes
Environment
Additional context
pygeoapi tile providers could consistently throw
ProviderTileNotFoundError
which can be handled inapi/tiles.py
to gracefully return such an error. Not sure it is wise to rely onProviderTileNotFoundError
.The text was updated successfully, but these errors were encountered: