falling-fruit / falling-fruit-web

Mobile-friendly website for Falling Fruit
https://beta.fallingfruit.org
GNU General Public License v3.0
29 stars 7 forks source link

toast the error on failed search #392

Closed wbazant closed 5 days ago

wbazant commented 1 month ago

I've had the dubious honor of triggering the API ofer quota today. I use a different key for localhost dev but was playtesting a beta site on another laptop. I was looking into the search behaviour, but hopefully didn't completely deplete it, I used it maybe like 10 times in total.

Anyway, the error about being overquota is not toasted on the beta site, and I had to check console.log to find out.

Screen Shot 2024-06-05 at 22 43 06 Screen Shot 2024-06-05 at 22 43 20
ezwelty commented 1 month ago

@wbazant Nope, this is definitely my fault. I'm geocoding a large tree inventory for eventual display on the site, and hit the daily limit set on the Falling Fruit account (30,000). Extremely unlikely to ever happen under normal conditions.

ezwelty commented 5 days ago

Closing this for now as "fixed" in the sense that I will be better about monitoring and managing API quota limits. The limit could be removed, but this would expose us to the potential of heavy use by a nefarious 3rd party and a correspondingly large bill from Google.