Related images taking too long to respond causes SystemExit
#1191
Labels
💻 aspect: code
Concerns the software code in the repository
🛠 goal: fix
Bug fix
🟧 priority: high
Stalls work on the project or its dependents
🧱 stack: api
Related to the Django API
🐛 tooling: sentry
Sentry issue
Sentry link
https://openverse.sentry.io/share/issue/b4898535c2184d179c3ae2642f6ea429/
Description
It looks like the
images/{identifier}/related
page will occasionally take too long to load for certain images, and will cause both a gateway timeout for the user and an uncaughtSystemExit
exception. Here's the stacktrace (I kept the entire thing in case the redundant lines are indicative of something):Reproduction
This is, fortunately, highly reproducible with the following URL: https://api.openverse.engineering/v1/images/520a3049-afaa-47e7-b060-7928a3b04df9/related/
I wonder if this is perhaps because all of the stored, related images are dead links and so the API is just iterating again and again to try and find some images.
The text was updated successfully, but these errors were encountered: