Skip to content

Uncaught AbortError with Deno.serve #28632

Open
@jeiea

Description

@jeiea

Original discord thread: https://discord.com/channels/684898665143206084/1353299792712695808/1353299792712695808

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]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions