graphql-yoga icon indicating copy to clipboard operation
graphql-yoga copied to clipboard

`handleError` incorrectly sets `extensions.http.unexpected` instead of `extensions.unexpected`

Open rwe opened this issue 9 months ago • 1 comments

Describe the bug

This is done in only one place and is obviously unintended:

https://github.com/graphql-hive/graphql-yoga/blob/c3e7fddc8ae49da50263ac74fa9e6f0814f70c34/packages/graphql-yoga/src/error.ts#L98-L116

Your Example Website or App

https://localhost

Steps to Reproduce the Bug or Issue

  1. Go to above link

Expected behavior

It sets the correct extension property in that fallback case.

Screenshots or Videos

No response

Platform

  • GitHub

Additional context

No response

rwe avatar Mar 28 '25 23:03 rwe

Thanks for creating the issue! PRs are welcome for the fix!

ardatan avatar Mar 29 '25 00:03 ardatan