pulibrary / pdc_discovery

Princeton Data Commons discovery portal for Research Data
10 stars 0 forks source link

Handle cases where Plausible metrics downloads fail #594

Open jrgriffiniii opened 6 months ago

jrgriffiniii commented 6 months ago

Currently there are cases where response within attempts to request the number of downloads recorded by Plausible is nil. This should be handled rather than raise a Honeybadger error.

Honeybadger indicated that the error originated from: https://github.com/pulibrary/pdc_discovery/blob/fdaa2b1013efb37e1605e5f62548603b6aa50c4d/app/models/plausible.rb#L35

View full backtrace and more info at honeybadger.io