-
-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Description
TypeError: fetch failed
at Object.fetch (node:internal/deps/undici/undici:11576:11)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
cause: AggregateError
at internalConnectMultiple (node:net:1114:18)
at afterConnectMultiple (node:net:1667:5) {
code: 'ECONNREFUSED',
[errors]: [ [Error], [Error] ]
}
}
[]
This is always reported when using fetchEtas.
sample code:
const bus = require("hk-bus-eta");
bus.fetchEtaDb().then((busDb) => {
bus.fetchEtas({
...busDb.routeList["1+1+CHUK YUEN ESTATE+STAR FERRY"],
seq: 0,
language: "en",
}).then(etas => {
console.log(etas)
})
})Metadata
Metadata
Assignees
Labels
No labels