Title: NonNullableValueCoercedAsNullException being thrown in QueryTraversal · Issue #2761 · graphql-java/graphql-java · GitHub
Open Graph Title: NonNullableValueCoercedAsNullException being thrown in QueryTraversal · Issue #2761 · graphql-java/graphql-java
X Title: NonNullableValueCoercedAsNullException being thrown in QueryTraversal · Issue #2761 · graphql-java/graphql-java
Description: Discussed in #2760 Originally posted by slisaasquatch March 12, 2022 I'm seeing random NonNullableValueCoercedAsNullExceptions from our servers running graphql-java 17.3 with graphql-java-tools 12.0.2. I've logged the entire GraphQL quer...
Open Graph Description: Discussed in #2760 Originally posted by slisaasquatch March 12, 2022 I'm seeing random NonNullableValueCoercedAsNullExceptions from our servers running graphql-java 17.3 with graphql-java-tools 12....
X Description: Discussed in #2760 Originally posted by slisaasquatch March 12, 2022 I'm seeing random NonNullableValueCoercedAsNullExceptions from our servers running graphql-java 17.3 with graphql-java-tools...
Opengraph URL: https://github.com/graphql-java/graphql-java/issues/2761
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"NonNullableValueCoercedAsNullException being thrown in QueryTraversal","articleBody":"\r\n\r\n\r\n### Discussed in https://github.com/graphql-java/graphql-java/discussions/2760\r\n\r\n\u003cdiv type='discussions-op-text'\u003e\r\n\r\n\u003csup\u003eOriginally posted by **slisaasquatch** March 12, 2022\u003c/sup\u003e\r\nI'm seeing random `NonNullableValueCoercedAsNullException`s from our servers running graphql-java 17.3 with graphql-java-tools 12.0.2. I've logged the entire GraphQL query, variables, and operation name, and I cannot reproduce the exception. The stack trace looks like this:\r\n\r\n```\r\ngraphql.execution.NonNullableValueCoercedAsNullException: Field '' has coerced Null value for NonNull type 'String!'\r\n\tat graphql.execution.ValuesResolver.externalValueToInternalValue(ValuesResolver.java:493)\r\n\tat graphql.execution.ValuesResolver.lambda$externalValueToInternalValueForList$2(ValuesResolver.java:604)\r\n\tat java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)\r\n\tat java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1384)\r\n\tat java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:482)\r\n\tat java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:472)\r\n\tat java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)\r\n\tat java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)\r\n\tat java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:566)\r\n\tat graphql.execution.ValuesResolver.externalValueToInternalValueForList(ValuesResolver.java:605)\r\n\tat graphql.execution.ValuesResolver.externalValueToInternalValue(ValuesResolver.java:507)\r\n\tat graphql.execution.ValuesResolver.externalValueToInternalValueForObject(ValuesResolver.java:570)\r\n\tat graphql.execution.ValuesResolver.externalValueToInternalValue(ValuesResolver.java:510)\r\n\tat graphql.execution.ValuesResolver.externalValueToInternalValue(ValuesResolver.java:491)\r\n\tat graphql.execution.ValuesResolver.externalValueToInternalValueForVariables(ValuesResolver.java:412)\r\n\tat graphql.execution.ValuesResolver.coerceVariableValues(ValuesResolver.java:94)\r\n\tat graphql.analysis.QueryTraverser.coerceVariables(QueryTraverser.java:64)\r\n\tat graphql.analysis.QueryTraverser.\u003cinit\u003e(QueryTraverser.java:60)\r\n\tat graphql.analysis.QueryTraverser.\u003cinit\u003e(QueryTraverser.java:40)\r\n\tat graphql.analysis.QueryTraverser$Builder.build(QueryTraverser.java:297)\r\n\tat graphql.analysis.MaxQueryDepthInstrumentation.newQueryTraverser(MaxQueryDepthInstrumentation.java:92)\r\n\tat graphql.analysis.MaxQueryDepthInstrumentation.lambda$beginValidation$2(MaxQueryDepthInstrumentation.java:57)\r\n\tat graphql.execution.instrumentation.SimpleInstrumentationContext.onCompleted(SimpleInstrumentationContext.java:51)\r\n\tat graphql.execution.instrumentation.ChainedInstrumentation$ChainedInstrumentationContext.lambda$onCompleted$1(ChainedInstrumentation.java:238)\r\n\tat graphql.com.google.common.collect.ImmutableList.forEach(ImmutableList.java:405)\r\n\tat graphql.execution.instrumentation.ChainedInstrumentation$ChainedInstrumentationContext.onCompleted(ChainedInstrumentation.java:238)\r\n\tat graphql.GraphQL.validate(GraphQL.java:600)\r\n\tat graphql.GraphQL.parseAndValidate(GraphQL.java:562)\r\n\tat graphql.GraphQL.lambda$parseValidateAndExecute$10(GraphQL.java:531)\r\n\tat graphql.execution.preparsed.NoOpPreparsedDocumentProvider.getDocument(NoOpPreparsedDocumentProvider.java:15)\r\n\tat graphql.GraphQL.parseValidateAndExecute(GraphQL.java:533)\r\n\tat graphql.GraphQL.executeAsync(GraphQL.java:502)\r\n```\r\n\r\nCan someone please give me some general directions on what the error means?\r\n\r\nI know if I put a `null` inside an array that requires non null values in `variables`, I can cause an error with the same error message. However, if you look at the stack trace, the exception was thrown at `graphql.GraphQL.executeAsync`, meaning I'm not even getting a result from it.\r\n\r\nAlso for the record, this is what my `variables` looks like:\r\n\r\n```json\r\n{\r\n \"accountId\": \"133...63\",\r\n \"userId\": \"133...63\",\r\n \"userInput\": {\r\n \"accountId\": \"133...63\",\r\n \"id\": \"133...63\"\r\n }\r\n}\r\n```\r\n\r\nI do not have arrays or nulls in my `variables`.\u003c/div\u003e","author":{"url":"https://github.com/bbakerman","@type":"Person","name":"bbakerman"},"datePublished":"2022-03-13T01:37:09.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":11},"url":"https://github.com/2761/graphql-java/issues/2761"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:3387b0a5-a892-4b18-4180-b96d1f6399df |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B0D2:3C7BE4:31153B:43F721:6A6029C9 |
| html-safe-nonce | 6d93ea40c4debd15a50a37e816bdacf62cb45d27ba04e27df5224155057c447c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMEQyOjNDN0JFNDozMTE1M0I6NDNGNzIxOjZBNjAyOUM5IiwidmlzaXRvcl9pZCI6Ijc5OTA4Mzk4NjYzNDI1MTcxOTMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 085bac7d154cd40ff3e97cc19471375c415dd9c29279d3694962f20700011e44 |
| hovercard-subject-tag | issue:1167450572 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/graphql-java/graphql-java/2761/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7b31eb468b9aaa246adbccfe1686c051d34031762fed7ba03ce3ecee79300bcc/graphql-java/graphql-java/issues/2761 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7b31eb468b9aaa246adbccfe1686c051d34031762fed7ba03ce3ecee79300bcc/graphql-java/graphql-java/issues/2761 |
| og:image:alt | Discussed in #2760 Originally posted by slisaasquatch March 12, 2022 I'm seeing random NonNullableValueCoercedAsNullExceptions from our servers running graphql-java 17.3 with graphql-java-tools 12.... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | bbakerman |
| hostname | github.com |
| expected-hostname | github.com |
| None | 60da8c2a42fa2bbf5f7567474990ec467836a84444262a58e200fa91b7f3d2d0 |
| turbo-cache-control | no-preview |
| go-import | github.com/graphql-java/graphql-java git https://github.com/graphql-java/graphql-java.git |
| octolytics-dimension-user_id | 14289921 |
| octolytics-dimension-user_login | graphql-java |
| octolytics-dimension-repository_id | 38602457 |
| octolytics-dimension-repository_nwo | graphql-java/graphql-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 38602457 |
| octolytics-dimension-repository_network_root_nwo | graphql-java/graphql-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9824515e740d83d5eb82168a089b806ab0fe04a1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width