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
So I think it has something to do with covid_hosp_facility not parsing the %2C%20 character, but specifically in the hospital_pks argument, because it clearly works in the collection_weeks argument (?!).
%2C%20 is two characters; %2C is a comma (the delimter), but %20 is a space (which i would argue doesnt belong in either of those variables/arguments)... the difference is that collection_weeks is parsed as a integer (which apparently silently ignores the space) and hospital_pks is parsed as a string (so its presumably looking for two hospital ids, one of which is "390119" but the other is " 100075" and that id with the leading space does not exist in the database).
Thanks for the context @melange396. Didn't realize a space was getting in there. So the error is not in the API, but in the request param formatting in this repo. Partial bug fix in #74, need some help though.
We should properly validate and document this, rather than returning data for only a single pk.
The text was updated successfully, but these errors were encountered: