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
Mentioned on fablabbcn/smartcitizen-api#166 - When i am browsing the webapp while not logged in as a researcher or admin (o sea, logged in as an unprivileged user or not logged in at all), requests to the API periodically return 429 (due to rate limiting) and data on the page is not loaded.
The text was updated successfully, but these errors were encountered:
Discussed with @oscgonfer - after further investigation this only happens on user pages with a large number of kits, eg @pral2a :
sc_dev=# select users.username, count(devices.id) from users left join devices on users.id = devices.owner_id group by users.username order by count(devices.id) desc limit 10;
username | count
-----------------------+-------
john | 1312
team | 1264
pral2a | 492
AIRLAB-ISGlobal | 274
Unibo | 162
Battirob | 60
natamyk | 40
AIRLAB_ISGlobal | 32
IAAC-Cristian_Rizzuti | 31
vico | 28
... as it makes a request for each kit. However this is unnecessary, as the kits data already arrives in the /v0/users/x api request! @oscgonfer to change so that it uses the data that's already there, and we should be fine :-)
(#443 would also fix this, but would still be making unnecessary requests)
Mentioned on fablabbcn/smartcitizen-api#166 - When i am browsing the webapp while not logged in as a researcher or admin (o sea, logged in as an unprivileged user or not logged in at all), requests to the API periodically return 429 (due to rate limiting) and data on the page is not loaded.
The text was updated successfully, but these errors were encountered: