Task Console - Error fetching data

401 views
Skip to first unread message

Adrian Apthorp

unread,
Jul 24, 2021, 11:47:58 PM7/24/21
to Kogito development mailing list
I just upgraded to 1.8.0.Final task console and get a 404 error following error when I open the link:

{"graphQLErrors":[],"networkError":{"name":"ServerParseError","response":{},"statusCode":404,"bodyText":"RESTEASY003210: Could not find resource for full path: http://localhost:8380/NOT_FOUND/graphql"},"message":"Network error: JSON.parse: unexpected character at line 1 column 1 of the JSON data"}

I'm starting the console in exactly the same way as before and data-index etc. is up

java -Dquarkus.log.console.level=DEBUG -Dquarkus.log.category.\"org.kie.kogito\".min-level=DEBUG -Dquarkus.log.category.\"org.kie.kogito\".level=DEBUG -Dquarkus.http.port=8380 -Dkogito.test.user-system.enabled=true -jar task-console-1.8.0.Final-runner.jar

Anyone else seeing this?


Pere Fernandez

unread,
Jul 27, 2021, 3:54:01 AM7/27/21
to Kogito development mailing list

Hey Adrian,

thanks for rising this! You can workaround that setting up the Data Index url pointint to `http://localhost:8180`, you can do that by using the property `kogito.dataindex.http.url` via passed as an argument to your java -jar command like `kogito.dataindex.http.url=http://localhost:8180`or by modifying the `application.properties` file in the Task Console module and add the property there. You could apply the same fix on Management Console.

Task/Management Console use Qute to load the properties in the `application.properties` file. For Data-Index if there's no entry on the file (or as an env) it defaults to `http://localhost:8180`. Looks like they changed how Qute returns a non existing value from the config, making it return "NOT_FOUND" instead of null, that's why the console isn't getting the default Data Index URL.

Will take a look how this can be fixed.

Thanks!
El dia diumenge, 25 de juliol de 2021 a les 5:47:58 UTC+2, Adrian Apthorp va escriure:
Reply all
Reply to author
Forward
0 new messages