cityofaustin / atd-micromobility-api

A dockless mobility data API built with Python/Sanic
12 stars 4 forks source link

Handle Large Requests #32

Closed johnclary closed 4 years ago

johnclary commented 5 years ago

It's possible to submit a query to the API that generates an invalid request to the Socrata API. If you were to submit a bounding box that covered the entire grid, this would generate a request to the Socrata API that is hundreds of thousands of characters in length, and would result in 414 Client Error: Request-URI Too Large for url

This API should handle these kinds of requests. Either by rejecting them on receipt, or splitting them into multiple requests to the Socrata API and merging them back together.

Migrated to atd-data-tech #1956