apache / age-viewer

Graph database optimized for fast analysis and real-time data processing. It is provided as an extension to PostgreSQL.
https://age.apache.org
Apache License 2.0
241 stars 238 forks source link

Error while creating graph #129

Open im-aditya30 opened 1 year ago

im-aditya30 commented 1 year ago

Bug Description I was trying to create a graph using Apache AGE viewer but I am getting this error:

An error occurred
Error Code: undefined

Error Details: TypeError: Cannot read properties of undefined (reading 'map')

When I checked the logs I got this:

info: ::ffff:127.0.0.1 - - [06/Mar/2023:16:04:24 +0000] "POST /api/v1/cypher/init HTTP/1.1" 500 76
 {"timestamp":"2023-03-06 21:34:24"}

Reproduction Steps Steps to reproduce the behavior:

  1. Run Age-viewer and log in.
  2. Click on Create Graph and type a name and then press Done
  3. See error

Expected behavior It should create a graph.

Desktop:

Additional context The user is the Superuser and one can create graph database by writing query by oneself.

marodins commented 1 year ago

It looks like this is caused by the backend trying handle some non-existent files. I can work on a fix. Thank you for your submission.

Amr-Shams commented 1 year ago

I faced the same issue but I believe they mentioned in the tips you have to upload a CVS file.id when doing so.. the error is gone. while it is not convenient to create a button that do only creat non empty graph