graph-explorer
graph-explorer copied to clipboard
[Bug] Unable to create a connection successfully if a graph databases contains only vertices and no edges
Community Note
- Please use a 👍 reaction to provide a +1/vote. This helps the community and maintainers prioritize this request.
- If you are interested in working on this issue or have submitted a pull request, please leave a comment.
Describe the bug
Tested this with Neptune db. I created vertices on the db with no edges in gremlin format. Then trying to create connection from graph-explorer, the connection was not successful. Misleading error gives as unable to connect with database but while debugging the backend error is:
{
code: 'MalformedQueryException',
detailedMessage: "Failed to interpret Gremlin query: Query parsing failed at line 1, character position at 14, error message : no viable alternative at input 'g.E().project()'",
requestId: '3b949d91-2969-4602-9aee-ec1d6e363eed'
}
Expected behavior There should be a clear error from the UI as to what is happening. Also this should not fail a connection as nodes can still be displayed without edges on Graph Explorer.
Currently errors like above are not logged visibly in the proxy code. Hence needs debugging to find the actual errors. I would recommend checking the response code and log the errors on the console.