- Go to billing https://kagi.com/settings?p=billing
- Click "Search usage"
- Observe how the page will take a while and eventually return a 502 status code
After waiting multiple seconds, reloading may show the page successfully because it has been cached. However, on this initial load when the cache is being recreated, the server takes too long, resulting in the error page.
I can reproduce this multiple times, even after the cache has been created, by switching to a different node because the cache is region-specific.
This has been an issue for multiple years, so if there are server-side error logs, you should be able to find more details there.
I expected the search usage page to load, or if needed, show a loading screen that will automatically reload once the data has been computed and cached.