Closed ericdevries closed 2 months ago
Since version 0.240.0, the MaskErrors extension fails to mask errors.
See example script here:
import typing import strawberry from strawberry.extensions import MaskErrors @strawberry.type class Book: title: str author: str def get_books(): raise Exception("Something went wrong") @strawberry.type class Query: books: typing.List[Book] = strawberry.field(resolver=get_books) schema = strawberry.Schema(query=Query, extensions=[MaskErrors(error_message="Internal server error")])
In the previous version it would show Internal server error as the message. Since 0.240.0 it shows this:
Internal server error
{ "data": null, "errors": [ { "message": "Something went wrong", "locations": [ { "line": 2, "column": 3 } ], "path": [ "books" ] } ] }
I'll check this today! thanks for the report š
Thanks!
Since version 0.240.0, the MaskErrors extension fails to mask errors.
Describe the Bug
See example script here:
In the previous version it would show
Internal server error
as the message. Since 0.240.0 it shows this:System Information
Additional Context
Upvote & Fund