You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Drupal responds with a stack trace which should not happen
The website encountered an unexpected error. Please try again later. TypeError: Argument 1 passed to Drupal\graphql\Utility\JsonHelper::decodeParams() must be of the type array, null given, called in /Users/clemens/Sites/drupal.web/web/modules/contrib/graphql/src/Routing/QueryRouteEnhancer.php on line 77 in Drupal\graphql\Utility\JsonHelper::decodeParams() (line 16 of modules/contrib/graphql/src/Utility/JsonHelper.php).
Sending an invalid JSON which happened to me several times when typing by hand or forget to json encode
Drupal responds with a stack trace which should not happen
My naive solution trying to add errors failed (again). Replacing the inline json_decode() producing a NULL value on invalid JSON
by a more explicit encoding and adding errors for the client to easier debug their request
\Drupal\graphql\Routing\QueryRouteEnhancer::extractBody
the error is not used in the response.
The text was updated successfully, but these errors were encountered: