You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kie.apache.org by "fjtirado (via GitHub)" <gi...@apache.org> on 2024/01/18 18:00:56 UTC
[I] Enter field is null for node when event type is error [incubator-kie-kogito-apps]
fjtirado opened a new issue, #1960:
URL: https://github.com/apache/incubator-kie-kogito-apps/issues/1960
### Describe the bug
Issue https://github.com/apache/incubator-kie-issues/issues/576 added a small change related with Node event types (a new state` EVENT_TYPE_ERROR`.
https://github.com/apache/incubator-kie-kogito-apps/pull/1905/files#diff-75857da81f9a6c41a57e4d01897944eb525e789e7fb655c9a7f521f6598cb71fR72
When the event is of this type, the enter fields is left empty, but according to graphql definition, enter is not nullable, causing this exception
```
Full Error as JSON
{
"error": {
"name": "CombinedError",
"message": "[GraphQL] The field at path '/ProcessInstances[0]/nodes[7]/enter' was declared as a non null type, but the code involved in retrieving data has wrongly returned a null value. The graphql specification requires that the parent field be set to null, or if that is non nullable that it bubble up null to its parent and so on. The non-nullable type is 'DateTime' within parent type 'NodeInstance'\n[GraphQL] The field at path '/ProcessInstances[0]/nodes[8]/enter' was declared as a non null type, but the code involved in retrieving data has wrongly returned a null value. The graphql specification requires that the parent field be set to null, or if that is non nullable that it bubble up null to its parent and so on. The non-nullable type is 'DateTime' within parent type 'NodeInstance'",
"graphQLErrors": [
{
"message": "The field at path '/ProcessInstances[0]/nodes[7]/enter' was declared as a non null type, but the code involved in retrieving data has wrongly returned a null value. The graphql specification requires that the parent field be set to null, or if that is non nullable that it bubble up null to its parent and so on. The non-nullable type is 'DateTime' within parent type 'NodeInstance'",
"path": [
"ProcessInstances",
0,
"nodes",
7,
"enter"
],
"extensions": {
"classification": "NullValueInNonNullableField"
}
},
{
"message": "The field at path '/ProcessInstances[0]/nodes[8]/enter' was declared as a non null type, but the code involved in retrieving data has wrongly returned a null value. The graphql specification requires that the parent field be set to null, or if that is non nullable that it bubble up null to its parent and so on. The non-nullable type is 'DateTime' within parent type 'NodeInstance'",
"path": [
"ProcessInstances",
0,
"nodes",
8,
"enter"
],
"extensions": {
"classification": "NullValueInNonNullableField"
}
}
],
"response": {}
},
"request": {
"method": "GET",
"url": "/instances/b9af370f-b873-4191-a43a-2b50bfd9d0e3"
},
"response": {
"statusCode": 500
}
}
```
### Expected behavior
Enter should be always filled
### Actual behavior
Enter is null when even type is error
### How to Reproduce?
_No response_
### Output of `uname -a` or `ver`
_No response_
### Output of `java -version`
_No response_
### GraalVM version (if different from Java)
_No response_
### Kogito version or git rev (or at least Quarkus version if you are using Kogito via Quarkus platform BOM)
_No response_
### Build tool (ie. output of `mvnw --version` or `gradlew --version`)
_No response_
### Additional information
_No response_
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org
Re: [I] Enter field is null for node when event type is error [incubator-kie-kogito-apps]
Posted by "ederign (via GitHub)" <gi...@apache.org>.
ederign closed issue #1960: Enter field is null for node when event type is error
URL: https://github.com/apache/incubator-kie-kogito-apps/issues/1960
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org