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

Now errors with path set to null can be normalized

Open wuarmin opened this issue 5 years ago • 4 comments

Hello, I'm consuming a GraphQL-interface, which returns error-payloads like that:

{
      "data": null,
      "errors": [
        {
          "message": "error",
          "path": null
        }
      ]
}

This caused a NoMethodError: undefined method `each' for nil:NilClass This PR would fix the behavior.

thx and best regards

wuarmin avatar May 05 '20 13:05 wuarmin

Hello! @jhawthorn a merge of this change would help me a lot!

thx and best regards

wuarmin avatar Jun 24 '20 18:06 wuarmin

I hit this issue and was about to make a PR. Thanks @wuarmin.

Are there any planned releases?

tom-beck avatar Jul 28 '20 21:07 tom-beck

Are there any planned releases?

That would be great! @jhawthorn @rmosolgo

wuarmin avatar Jul 29 '20 10:07 wuarmin

This would also help me

natematykiewicz avatar Jun 08 '21 22:06 natematykiewicz