aws / graph-explorer

React-based web application that enables users to visualize both property graph and RDF data and explore connections between data without having to write graph queries.
https://github.com/aws/graph-explorer
Apache License 2.0
319 stars 47 forks source link

[Bug] Failurer to synchronize database with JanusGraph #236

Open d0g0x01 opened 8 months ago

d0g0x01 commented 8 months ago

Community Note

Describe the bug

Database fails to synchronize on connection setup. HTTP calls fail with "400 Bad Request and no gremlin script supplied" and "405 Method Not Allowed" errors. Setup

To Reproduce Steps to reproduce the behavior:

  1. Follow the steps of the README to run graph explorer via docker
  2. Go to https://localhost in web browser
  3. Accept certificate warnings
  4. Add connection for Gremlin to http://localhost:8182
  5. Attempt to synchronize the database

Screenshot 2024-02-07 at 15 32 28

Screenshot 2024-02-07 at 15 33 23

Gremlin server is up and responding correctly

curl http://localhost:8182/\?gremlin\=g.V\(\).count\(\)
{"requestId":"8b96bc56-528a-4793-9198-bd69584fd1b7","status":{"message":"","code":200,"attributes":{"@type":"g:Map","@value":[]}},"result":{"data":{"@type":"g:List","@value":[{"@type":"g:Int64","@value":0}]},"meta":{"@type":"g:Map","@value":[]}}}%

Expected behavior

Database synchronization should succeed

coolacid commented 8 months ago

This appears to be an issue with 1.5.1 - Reverting to 1.4.0 works for me.