We’ve been getting this intermittent error shown to users (ecommerce website) for a year now - it doesn’t happen often which is why we haven’t looked into it. We’re also not sure why it’s caused. The edge function logs show the following errors:
Oct 24, 12:31:57 PM: error Uncaught (in promise) resource closed
Oct 23, 01:21:58 PM: 01JAWN77 error Unable to render error page
Oct 23, 01:21:58 PM: 01JAWN77 error resource closed
Note that the first line " error Uncaught (in promise) resource closed" appears about 15-20 times but I removed the duplicates. I do see it every time the error “This edge function has crashed” occurs.
The “unable to render error page” is seen less often. There are also other less frequent errors like:
Oct 23, 07:25:06 PM: 01JAXA05 error BadResource: Bad resource IDOct 23, 07:25:06 PM: 01JAXA05 error at Object.pull (ext:deno_web/06_streams.js:946:38)Oct 23, 07:25:06 PM: 01JAXA05 error at Module.invokeCallbackFunction (ext:deno_webidl/00_webidl.js:981:16)Oct 23, 07:25:06 PM: 01JAXA05 error at ReadableByteStreamController.pullAlgorithm (ext:deno_web/06_streams.js:3563:14)Oct 23, 07:25:06 PM: 01JAXA05 error at readableByteStreamControllerCallPullIfNeeded (ext:deno_web/06_streams.js:1242:49)Oct 23, 07:25:06 PM: 01JAXA05 error at ReadableByteStreamController.[[[PullSteps]]] (ext:deno_web/06_streams.js:5990:5)Oct 23, 07:25:06 PM: 01JAXA05 error at readableStreamDefaultReaderRead (ext:deno_web/06_streams.js:2513:36)Oct 23, 07:25:06 PM: 01JAXA05 error at ext:deno_web/06_streams.js:2742:9Oct 23, 07:25:06 PM: 01JAXA05 error at new Promise ()Oct 23, 07:25:06 PM: 01JAXA05 error at ext:deno_web/06_streams.js:2741:14Oct 23, 07:25:06 PM: 01JAXA05 error at eventLoopTick (ext:core/01_core.js:168:7) {Oct 23, 07:25:06 PM: 01JAXA05 error name: "BadResource"Oct 23, 07:25:06 PM: 01JAXA05 error }Oct 23, 07:56:21 PM: 01JAXBSB error Unable to render error pageOct 23, 07:56:21 PM: 01JAXBSB error resource closed
I realise I may be reporting multiple issues here - the common theme is: I have not idea where the error is or what’s causing it.
One thing I noticed is that requests that may take longer than a few seconds may result in the most frequent error which is “error Uncaught (in promise) resource closed” but I might be wrong.
Any idea where I should start to look?
Thanks