Skip to content

Analytics GitHub actions job - rate limiting #2

@joeyhage

Description

@joeyhage

Analysis

Looking at the logs, the majority of the plugins detected on npm are not processed due to rate limiting from the following API: https://api.npmjs.org/downloads/point/last-week/<plugin>. I was able to reproduce the issue as well. The error is currently not logged due to this block of code only logging one of the error codes.

Expected Behavior

All plugins show in analytics

Steps To Reproduce

It happens every time the analytics job runs

Logs

Fetching package details data for homebridge-tuya...
2025-11-24T02:15:59.8238735Z     at fetchPackageDetails (file:///home/runner/work/analytics/analytics/scripts/extractAndStorePluginData.mjs:125:13)
2025-11-24T02:15:59.8240143Z     at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
2025-11-24T02:15:59.8584052Z Error fetching data for homebridge-unifi-access: Error: Error: 200 OK
2025-11-24T02:15:59.8585395Z Fetching package details data for @joshepw/homebridge-switchbot...
2025-11-24T02:15:59.8587752Z     at fetchPackageDetails (file:///home/runner/work/analytics/analytics/scripts/extractAndStorePluginData.mjs:125:13)
2025-11-24T02:15:59.8589560Z     at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
2025-11-24T02:15:59.9455282Z Error fetching data for homebridge-alarmdotcom: Error: Error: 200 OK
2025-11-24T02:15:59.9456470Z Fetching package details data for homebridge-homematic...
2025-11-24T02:15:59.9457946Z     at fetchPackageDetails (file:///home/runner/work/analytics/analytics/scripts/extractAndStorePluginData.mjs:125:13)
2025-11-24T02:15:59.9459671Z     at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
2025-11-24T02:15:59.9695902Z Error fetching data for homebridge-alexa-smarthome: Error: Error: 200 OK
2025-11-24T02:15:59.9697384Z Fetching package details data for @pietrolubini/homebridge-ecoflow...
2025-11-24T02:15:59.9699686Z     at fetchPackageDetails (file:///home/runner/work/analytics/analytics/scripts/extractAndStorePluginData.mjs:125:13)
2025-11-24T02:15:59.9700984Z     at process.processTicksAndRejections (node:internal/process/task_queues:103:5)

Configuration

n/a

Environment

n/a

Process Supervisor

hb-service

Additional Context

No response

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions