Server Communication Error (GraphQL)

12 views
Skip to first unread message

Tomasz

unread,
Jul 5, 2023, 10:37:37 AM7/5/23
to TopBraid Suite Users
Why this is marked as abuse? It has been marked as abuse.
Report not abuse
Hello Everyone,

recently we noticed that we cannot use Files menu on our instance of TopBraid due to some strange GraphQL errors. Therefore we decided to install everything from a very beginning and unfortunately they are still visible.
Did anyone meet something like that?

If I go to Files, edit any file and click on class on class hierarchy tab I get:

Error(s):

{"message":"Request failed with status code 400","name":"Error","stack":"Error: Request failed with status code 400\n    at module.exports (https://xxx.com/edg/tbl/lib/7.6.1.v20230615-1615/assets/build/vendors.bundle.js:2:845771)\n    at module.exports (https://xxx.com/edg/tbl/lib/7.6.1.v20230615-1615/assets/build/vendors.bundle.js:2:850104)\n    at XMLHttpRequest.onloadend (https://xxx.com/edg/tbl/lib/7.6.1.v20230615-1615/assets/build/vendors.bundle.js:2:836776)","config":{"transitional":{"silentJSONParsing":true,"forcedJSONParsing":true,"clarifyTimeoutError":false},"transformRequest":[null],"transformResponse":[null],"timeout":0,"xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN","maxContentLength":-1,"maxBodyLength":-1,"headers":{"Accept":"application/json, text/plain, */*","Content-Type":"application/json"},"method":"post","url":"graphql/file_apis_ui_ttlx/%3Chttp%3A%40%40%40%40%40%40datashapes.org%40%40%40dash%23ActionGroup%3E?message=Get_GraphQL_info_for_class_Action_group","data":"{\"query\":\"query getGraphQLInfo {\\n                        _typeShapeByURI(uri: \\\"http://datashapes.org/dash#ActionGroup\\\") {\\n                            rootQueryField\\n                        }\\n                    }\"}"},"status":400}
Query: query getGraphQLInfo {
                        _typeShapeByURI(uri: "http://datashapes.org/dash#ActionGroup") {
                            rootQueryField
                        }
                    }

Service URL: graphql/file_apis_ui_ttlx/%3Chttp%3A%40%40%40%40%40%40datashapes.org%40%40%40dash%23ActionGroup%3E?message=Get_GraphQL_info_for_class_Action_group


or if I go to Local Assets tab immediately I receive similar error:

Error(s):

{"message":"Request failed with status code 400","name":"Error","stack":"Error: Request failed with status code 400\n    at module.exports (https://xxx/edg/tbl/lib/7.6.1.v20230615-1615/assets/build/vendors.bundle.js:2:845771)\n    at module.exports (https://xxx/edg/tbl/lib/7.6.1.v20230615-1615/assets/build/vendors.bundle.js:2:850104)\n    at XMLHttpRequest.onloadend (https://xxx/edg/tbl/lib/7.6.1.v20230615-1615/assets/build/vendors.bundle.js:2:836776)","config":{"transitional":{"silentJSONParsing":true,"forcedJSONParsing":true,"clarifyTimeoutError":false},"transformRequest":[null],"transformResponse":[null],"timeout":0,"xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN","maxContentLength":-1,"maxBodyLength":-1,"headers":{"Accept":"application/json, text/plain, */*","Content-Type":"application/json"},"method":"post","url":"graphql/file_apis_ui_ttlx/%3Chttp%3A%40%40%40%40%40%40www.w3.org%40%40%402000%40%40%4001%40%40%40rdf-schema%23Resource%3E?message=Get_instances_of_Asset","data":"{\"query\":\"query getInstances {\\n                    resources(first: 1000 filter: \\\"(!<http://topbraid.org/swa#isImportedResource>($this) && isIRI($this))\\\" ) {\\n                        label\\n                        uri\\n                        type {\\n                            label\\n                            uri\\n                        }\\n                    }\\n                }\"}"},"status":400}
Query: query getInstances {
                    resources(first: 1000 filter: "(!<http://topbraid.org/swa#isImportedResource>($this) && isIRI($this))" ) {
                        label
                        uri
                        type {
                            label
                            uri
                        }
                    }
                }

Service URL: graphql/file_apis_ui_ttlx/%3Chttp%3A%40%40%40%40%40%40www.w3.org%40%40%402000%40%40%4001%40%40%40rdf-schema%23Resource%3E?message=Get_instances_of_Asset


It is really strange that we have such problems on instance where we just don't have anything yet set up. In logs I don't see anything either.

Best Regards,
Tomasz.

Holger Knublauch

unread,
Jul 5, 2023, 3:22:33 PM7/5/23
to topbrai...@googlegroups.com
Hi, 

would you mind submitting this scenario to the Support Portal (TSM)? The errors that you mention do not ring a bell to me, but it may require a look over your shoulder. When you resubmit it, could you also check if there is anything in the server/java log? I would expect some Exception stack traces there...

Thanks
Holger


--
The topics of this mailing list include TopBraid EDG and related technologies such as SHACL.
To post to this group, send email to topbrai...@googlegroups.com
---
You received this message because you are subscribed to the Google Groups "TopBraid Suite Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to topbraid-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/a49fe384-d548-4870-822d-df01a2732404n%40googlegroups.com.

Richard Cyganiak

unread,
Jul 5, 2023, 4:51:00 PM7/5/23
to topbrai...@googlegroups.com
With HTTP 400 errors, there is typically no stack trace in the log. But there should be an error message sent by the server along with the HTTP 400 response, and I don’t see it included in the error output reported below. The message should be accessible by opening the Developer Tools in the browser and finding the response with a 400 status code on the Sources tab.

Richard


Reply all
Reply to author
Forward
0 new messages