Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OperationException(linkException: ResponseFormatException(originalException: type 'Null' is not a subtype of type 'String' in type cast #415

Open
Routee opened this issue Aug 30, 2023 · 1 comment

Comments

@Routee
Copy link

Routee commented Aug 30, 2023

image

if the backend throw a custom exception which message is null. This line:

error['message'] as String

will throw an excption. it's not the expected.

@Routee Routee mentioned this issue Aug 30, 2023
@knaeckeKami
Copy link
Collaborator

Actually, a message is required by the graphql spec

See https://spec.graphql.org/October2021/#sec-Errors.Error-result-format

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants