dfe-analytical-services / eesyapi

An R package with useful utility functions for connecting to, and processing data from, the DfE's explore education statistics API.
https://dfe-analytical-services.github.io/eesyapi/
Other
1 stars 0 forks source link

Add proper handling of NULL data return #55

Open rmbielby opened 1 month ago

rmbielby commented 1 month ago

Is your feature request related to a problem? Please describe.

If a query is legitimate in terms of what the API will accept, but there's just no data rows corresponding to the query terms, then the API returns a 200 response, but with no results. This gets pulled out as a NULL in post_dataset / get_dataset and the code errors with something like select not applicable to object NULL.

Examples of this are: