hypothesis_aggregator
hypothesis_aggregator copied to clipboard
Plugin hits Hypothesis API rate limits due to fetching annotations multiple times
The hypothesis_shortcode
function performs a search request against the Hypothesis API, which returns the full contents of each annotation. It then fetches each annotation individually from the GET /api/annotations/{id}
endpoint. Was there a reason for this second fetch, rather than just using the $value
variable to read annotation data?
We've seen that a client using the Httpful library, which I suspect is this package, has been hitting recently introduced API rate limits in the Hypothesis service. We're still tuning the thresholds but we put these rate limits in place to protect availability of the service.