You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The request to refresh the cache (implemented in #10) seems to regularly fail. Not sure if bumping undici or trying node 18 would fix it. There may be some weirdness going on since we're requesting back into the site.
Could also see if waiting some time (e.g. 100ms) for the request to be dispatched would help.
At time of writing, it still succeeds enough - recent comics are shown on the site.
Jan 16, 11:00:58 AM: 574be9e6 INFO Getting comics for 1949
Jan 16, 11:00:58 AM: 574be9e6 ERROR Refresh error TypeError: fetch failed
at fetch (file:///var/task/.netlify/shims.js:20554:14)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at runNextTicks (node:internal/process/task_queues:65:3)
at processImmediate (node:internal/timers:437:9) {
cause: ConnectTimeoutError: Connect Timeout Error
at onConnectTimeout (file:///var/task/.netlify/shims.js:6979:26)
at file:///var/task/.netlify/shims.js:6926:46
at Immediate._onImmediate (file:///var/task/.netlify/shims.js:6967:9)
at processImmediate (node:internal/timers:466:21) {
code: 'UND_ERR_CONNECT_TIMEOUT'
}
}
Jan 16, 11:00:58 AM: 574be9e6 ERROR Refresh error TypeError: fetch failed
at fetch (file:///var/task/.netlify/shims.js:20554:14)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at runNextTicks (node:internal/process/task_queues:65:3)
at processImmediate (node:internal/timers:437:9) {
cause: ConnectTimeoutError: Connect Timeout Error
at onConnectTimeout (file:///var/task/.netlify/shims.js:6979:26)
at file:///var/task/.netlify/shims.js:6926:46
at Immediate._onImmediate (file:///var/task/.netlify/shims.js:6967:9)
at processImmediate (node:internal/timers:466:21) {
code: 'UND_ERR_CONNECT_TIMEOUT'
}
}
Jan 16, 11:00:58 AM: 574be9e6 ERROR Refresh error TypeError: fetch failed
at fetch (file:///var/task/.netlify/shims.js:20554:14)
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
cause: ConnectTimeoutError: Connect Timeout Error
at onConnectTimeout (file:///var/task/.netlify/shims.js:6979:26)
at file:///var/task/.netlify/shims.js:6926:46
at Immediate._onImmediate (file:///var/task/.netlify/shims.js:6967:9)
at processImmediate (node:internal/timers:466:21) {
code: 'UND_ERR_CONNECT_TIMEOUT'
}
}
Jan 16, 11:00:58 AM: 574be9e6 INFO Total comics: 8
Jan 16, 11:00:58 AM: 574be9e6 INFO cache checked in 0.2994936400000006
Jan 16, 11:00:58 AM: 574be9e6 INFO retrieving 1949 page 0
Jan 16, 11:00:58 AM: 574be9e6 INFO data for 1949 page 0 is stale, firing refresh request to https://marvel.geoffrich.net/year/1949/refresh
Jan 16, 11:00:58 AM: 574be9e6 INFO found 1949 page 0 in redis cache
Jan 16, 11:00:58 AM: 574be9e6 INFO elapsed 0.3023234890000895
Jan 16, 11:00:58 AM: 574be9e6 Duration: 335.94 ms Memory Usage: 158 MB
The request to refresh the cache (implemented in #10) seems to regularly fail. Not sure if bumping undici or trying node 18 would fix it. There may be some weirdness going on since we're requesting back into the site.
Could also see if waiting some time (e.g. 100ms) for the request to be dispatched would help.
At time of writing, it still succeeds enough - recent comics are shown on the site.
The code is here:
marvel-by-year/src/lib/api.ts
Lines 44 to 52 in 2309f0a
The text was updated successfully, but these errors were encountered: