DenoDDeno
Powered by
jeieaJ
Deno•12mo ago•
1 reply
jeiea

How to inspect Deno's rare uncaught rejections?

I'm encountering an AbortError with Deno.serve, but it's difficult to report the issue since I can't reliably reproduce it. Based on the stack trace, I can't seem to catch the error, as there’s no clear interception point.

How can I investigate and debug this?
Task run deno run -A mod.ts --path=dav --meta-touch --debug
TamperDAV is running without any form of authentication. It's strongly recommended to configure username and password!
Listening on http://[::1]:7000/
server is listening on 7000
OPTIONS http://localhost:7000/ -> 200
PROPFIND http://localhost:7000/Tampermonkey/sync/ -> 207 
SUBSCRIBE http://localhost:7000/Tampermonkey/sync/ -> 204 
GET http://localhost:7000/Tampermonkey/sync/1ad4aeb3-957a-4194-972c-38077b189700.meta.json -> 200 
SUBSCRIBE http://localhost:7000/Tampermonkey/sync/ -> 204 
SUBSCRIBE http://localhost:7000/Tampermonkey/sync/ -> (pending: 0)
SUBSCRIBE http://localhost:7000/Tampermonkey/sync/ (pending: 0) -> 204 
SUBSCRIBE http://localhost:7000/Tampermonkey/sync/ -> (pending: 1)
SUBSCRIBE http://localhost:7000/Tampermonkey/sync/ (pending: 1) -> 204 
...
SUBSCRIBE http://localhost:7000/Tampermonkey/sync/ (pending: 1583) -> 204 
SUBSCRIBE http://localhost:7000/Tampermonkey/sync/ -> (pending: 1585)
SUBSCRIBE http://localhost:7000/Tampermonkey/sync/ (pending: 1584) -> 204 
SUBSCRIBE http://localhost:7000/Tampermonkey/sync/ -> (pending: 1586)
error: Uncaught (in promise) AbortError: The request has been cancelled.
    at ext:deno_fetch/23_request.js:287:11
    at eventLoopTick (ext:core/01_core.js:178:7)
[Program exited]
Task run deno run -A mod.ts --path=dav --meta-touch --debug
TamperDAV is running without any form of authentication. It's strongly recommended to configure username and password!
Listening on http://[::1]:7000/
server is listening on 7000
OPTIONS http://localhost:7000/ -> 200
PROPFIND http://localhost:7000/Tampermonkey/sync/ -> 207 
SUBSCRIBE http://localhost:7000/Tampermonkey/sync/ -> 204 
GET http://localhost:7000/Tampermonkey/sync/1ad4aeb3-957a-4194-972c-38077b189700.meta.json -> 200 
SUBSCRIBE http://localhost:7000/Tampermonkey/sync/ -> 204 
SUBSCRIBE http://localhost:7000/Tampermonkey/sync/ -> (pending: 0)
SUBSCRIBE http://localhost:7000/Tampermonkey/sync/ (pending: 0) -> 204 
SUBSCRIBE http://localhost:7000/Tampermonkey/sync/ -> (pending: 1)
SUBSCRIBE http://localhost:7000/Tampermonkey/sync/ (pending: 1) -> 204 
...
SUBSCRIBE http://localhost:7000/Tampermonkey/sync/ (pending: 1583) -> 204 
SUBSCRIBE http://localhost:7000/Tampermonkey/sync/ -> (pending: 1585)
SUBSCRIBE http://localhost:7000/Tampermonkey/sync/ (pending: 1584) -> 204 
SUBSCRIBE http://localhost:7000/Tampermonkey/sync/ -> (pending: 1586)
error: Uncaught (in promise) AbortError: The request has been cancelled.
    at ext:deno_fetch/23_request.js:287:11
    at eventLoopTick (ext:core/01_core.js:178:7)
[Program exited]
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,934Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

Deno.inspect, how to log class instances with getters
1771771771177177177 / help
4y ago
How to load DWARF debugging symbols from WASM modules when running `deno --inspect`
cowboydCcowboyd / help
14mo ago
Missing source code when debugging via "deno run --inspect"
moMmo / help
2y ago