Going to https://github.com/epstein-index/epstein-index/issues gives me 404. Maybe a permissions issue?
The specific bug I wanted to report is the Person Detail api does not work (curl “https://epsteinexposed.com/api/v1/persons/bill-clinton” hangs indefinitely for me)
I found a second bug. Image links are not always correct.
https://epsteinexposed.com/api/v1/persons?page=1&per_page=100&q=Jose+Maria+Aznar
[{‘id’: ‘p-039’, ‘slug’: ‘jose-maria-aznar’, ‘name’: ‘Jose Maria Aznar’, ‘category’: ‘politician’, ‘aliases’: [‘Jose Maria Aznar Lopez’], ‘shortBio’: ‘Former Prime Minister of Spain’, ‘imageUrl’: ‘/images/persons/jose-maria-aznar.jpg’, ‘status’: None, ‘flightCount’: 2, ‘documentCount’: 0, ‘connectionCount’: 3, ‘emailCount’: 0}]
however, this url doesn’t work https://epsteinexposed.com/api/v1/persons/images/persons/jose-maria-aznar.jpg
Good catches, thanks for digging into the API.
GitHub Issues link: You’re right, the repo URL in the footer was pointing to the wrong path. I fixed it already
API /persons/:slug hanging: I can reproduce this. The persons detail endpoint is doing too much work synchronously - pulling documents, flights, connections all in one call. I’ll look into what’s causing the timeout and get it sorted.
Image URLs: Yeah that’s a quirk of how the API serializes the data. The imageUrl field returns the relative path as stored internally (e.g. /images/persons/jose-maria-aznar.jpg), but to actually load the image you need to prepend the site domain: https://epsteinexposed.com/images/persons/jose-maria-aznar.jpg. I should either return absolute URLs from the API or document this clearly. Will fix.
Appreciate you testing this stuff thoroughly - these are the kinds of bugs that are easy to miss from the inside.
1 Like
Thanks for responding! I got the Image urls to work with the correct base URL. Thanks for explaining!