Skip to content

intermittent 500 errors on manual errors thrown #227

@paul590

Description

@paul590

Hello,

I recently started using your library and I am encountering a weird issue. I am using typescript and graphql. Whenever I throw an error in the format of: new Error("This is an error"). The graph ql ui provides the following:

"error": {
"statusCode": 500,
"error": "Internal Server Error",
"message": "Internal Server Error"
}

the strange part happens when i press the run button again on the ui, the proper error message is displayed. This 500 error only appears the first time I try to run a query that throws an error, subsequent calls do not throw this error. I was using Apollo server before and everything worked as expected. Can you please provide some assistance?

Thank you in advance!

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