edgi-govdata-archiving / EEW_SDWA_NJ

An open educational resource developed at the Environmental Data and Governance Initiative for interactive exploration of New Jersey's waters and water pollution.
https://eew-sdwa-nj.streamlit.app/
GNU General Public License v3.0
1 stars 0 forks source link

Violations page returns error when there are too many facilities #121

Closed ericnost closed 12 months ago

ericnost commented 12 months ago
image

This is a well-known issue across all of EEW's work with ECHO. The problem is that we are sending too big of a request to the server. We are asking for information for more than ~50 facility ids.

The solution has been to batch process the requests. See: https://github.com/edgi-govdata-archiving/ECHO_modules/blob/56ff4e12bc4e56ba7930e50fe65fba22cd0658ea/DataSet.py#L104