Skip to content
This repository was archived by the owner on Dec 19, 2023. It is now read-only.
This repository was archived by the owner on Dec 19, 2023. It is now read-only.

Subscription error response does not comply with the GraphQL specification #367

Open
@BlasiusSecundus

Description

@BlasiusSecundus

According to the GraphQL specification if an error occurs the response should contain a non-empty errors array.

In case of queries and mutations, this works correctly. E. g. the following response is returned:

{
  "errors": [
    {
      "message": "Internal Server Error(s) while executing query"
    }
  ],
  "data": null
}

However, in case of subscriptions, a single error object is returned:

{
  "error": {
    "message": "Internal Server Error(s) while executing query"
  }
}

This seems to be a violation of specs, and could cause issues for clients that expect a specification-compliant response.

Tested versions: 6.0.1, current (as of commit 0f948f8) master

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions