Skip to content

calling next() after res.end() leads to [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client. #752

@danlannz

Description

@danlannz

current workaround is to check for res.finished in the following request handlers.
Is this functionality ever desired after the response stream has ended?

https://github.com/prismagraphql/graphql-playground/blob/62ecfdb658935a11391701835d15c66a06be68ad/packages/graphql-playground-middleware-express/src/index.ts#L27-L33

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