-
Notifications
You must be signed in to change notification settings - Fork 3
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
Clicking on some measurements on the map result in an error #78
Comments
@rcavaliere FYI @davidebz Do you have an idea how to solve this? |
The problem is that the code expects a result from the following request, but the But the result of this request is not empty: Therefore, I assume that the station "municipalitybz:14" does not contain any data type. As you can see, the station "municipalitybz:14l2d1" contains some data types: Would it be possible to change the API to return the station metadata with an empty |
@noctho Hi, thanks for your investigations. However, the API operates like a SQL statement as it is just a thin layer around Postgres queries. That is, if you have a filter that filters out everything, nothing is generated and an empty result returned. Checking the DB it turns out that that station has no measurements attached, hence the empty result. I will think of a possibility to add empty sdatatypes, but that will not happen in short time. I have to rethink how the API works internally and see if I could make a left outer join, but I do not know what implications that might have for performance and other results. It should be possible for a v3 of the API thou. So please, fix the logic inside your code in the meantime. |
This is a special case of stations that have no data types and measurements associated. Yes, if we have a better error message here would be nicer. |
I logged in as a user that can access "Comune di Bolzano" data, then I clicked on "traffic" and the station as you see it in the screenshot:
The problem is that the detail view shows "loading..." forever. All data types in that station that have a gray dot work as expected.
Console output is as follows:
The text was updated successfully, but these errors were encountered: