RobinHeidenis / bucketlist

Movie, show, and bucket list app to keep track of all the things you still want to watch or do
https://bucketlist.fractum.nl
1 stars 0 forks source link

fix: 🐛 canvas error when image does not exist #97

Closed RobinHeidenis closed 9 months ago

RobinHeidenis commented 9 months ago

✅ Closes: BUC-90

linear[bot] commented 9 months ago
BUC-90 Fix: "Error: remote source rejected with status code 404" on @napi/canvas calls

Sentry Issue: [BUCKETLIST-1E](https://fractum.sentry.io/issues/4489682085/?referrer=Linear) ``` Error: remote source rejected with status code 404 File "/var/task/node_modules/.pnpm/napi-rs+canvas0.1.44/node_modules/napi-rs/canvas/load-image.js", line 69, col 23, in ClientRequest. return reject(new Error(`remote source rejected with status code ${res.statusCode}`)) File "node:events", line 629, col 26, in Object.onceWrapper File "node:events", line 526, col 35, in ClientRequest.emit File "node:domain", line 489, col 12, in ClientRequest.emit File "node:_http_client", line 700, col 27, in HTTPParser.parserOnIncomingClient [as onIncoming] File "node:_http_common", line 119, col 17, in HTTPParser.parserOnHeadersComplete File "node:_http_client", line 541, col 22, in TLSSocket.socketOnData File "node:events", line 514, col 28, in TLSSocket.emit File "node:domain", line 489, col 12, in TLSSocket.emit File "node:internal/streams/readable", line 324, col 12, in addChunk ``` This happens when adding a movie or show that doesn't have a thumbnail on TMDB

vercel[bot] commented 9 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
bucketlist ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 2, 2023 10:46pm
what-the-diff[bot] commented 9 months ago

PR Summary