Skip to content

Fusion does not propagate subgraphs request-level errors to the gateway response #9728

@moeb-trackman

Description

@moeb-trackman

Product

Hot Chocolate

Version

16.1.0-p.1.11

Link to minimal reproduction

https://github.com/moeb-trackman/HotChocolate-Fusion-Bug/

Steps to reproduce

Return an request-level error within a resolver in a subgraph

context.ReportError("This is an error message from the resolver.");

Running the query against subgraph returns the request-level error but gateway does not.

What is expected?

Gateway must propagate the request-level error of subgraphs to the response

{
 "errors": [
    {
      "message": "This is an error message from the resolver.",
      "path": [
        "orders"
      ]
    }
  ]
  "data": {}
}

What is actually happening?

{
  "data": {}
  # NO ERROR !
}

Relevant log output

Additional context

No response

Metadata

Metadata

Assignees

No one assigned
    No fields configured for Question.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions