Skip to content

Importing JSON graph into new DB causes Uncaught TypeError in studio-graph-widget.js #3096

@thadguidry

Description

@thadguidry

Reproduce

  1. Create a new DB
  2. Click on Graph tab
  3. Click on Import - > JSON
  4. On the Import Graph dialog click the button Choose File (see attached JSON file nms_recipes_full.zip)
  5. Select a JSON file from your filesystem
  6. Notice the lower portion of dialog says in green color "The file has been uploaded successfully".
  7. Now click on Import the graph at the bottom of dialog
  8. After about 8 secs (because I think the JSON file is being parsed?) the Edge browser JS console shows the error:
studio-graph-widget.js:10  Uncaught TypeError: Cannot read properties of undefined (reading 'graphSpacing')
    at renderGraph (studio-graph-widget.js:10:46)
    at HTMLButtonElement.<anonymous> (studio-graph.js:74:9)
    at HTMLButtonElement.dispatch (jquery.min.js:2:39683)
    at v.handle (jquery.min.js:2:37674)

nms_recipes_full.zip

Environment

Windows 11 Pro, 64GB
WSL with Docker Desktop integrated
From WSL (Arch Linux), I started ArcadeDB via docker with the following:

 docker run --rm -p 2480:2480 -p 2424:2424 \
  -e JAVA_OPTS="-Darcadedb.server.rootPassword=playwithdata \
  -Darcadedb.server.defaultDatabases=Imported[root]{import:https://github.com/ArcadeData/arcadedb-datasets/raw/main/orientdb/OpenBeer.gz}" \
  arcadedata/arcadedb:latest
Unable to find image 'arcadedata/arcadedb:latest' locally
latest: Pulling from arcadedata/arcadedb
9824c27679d3: Pull complete
4f4fb700ef54: Pull complete
60fa98de8c5a: Pull complete
a2ba33acdd26: Pull complete
8988afcd1754: Pull complete
960c5713500a: Pull complete
d4d23bb5eb8f: Pull complete
1d6b833dcea3: Pull complete
5981b8e04f3a: Pull complete
c0c8249855a3: Download complete
Digest: sha256:a5362a094001f1c4d30a9dbb346e07f93a678b0709b4cf17f39be119ef9ddc85
Status: Downloaded newer image for arcadedata/arcadedb:latest

 █████╗ ██████╗  ██████╗ █████╗ ██████╗ ███████╗██████╗ ██████╗
██╔══██╗██╔══██╗██╔════╝██╔══██╗██╔══██╗██╔════╝██╔══██╗██╔══██╗
███████║██████╔╝██║     ███████║██║  ██║█████╗  ██║  ██║██████╔╝
██╔══██║██╔══██╗██║     ██╔══██║██║  ██║██╔══╝  ██║  ██║██╔══██╗
██║  ██║██║  ██║╚██████╗██║  ██║██████╔╝███████╗██████╔╝██████╔╝
╚═╝  ╚═╝╚═╝  ╚═╝ ╚═════╝╚═╝  ╚═╝╚═════╝ ╚══════╝╚═════╝ ╚═════╝
PLAY WITH DATA                                    arcadedb.com\n
WARNING: Using incubator modules: jdk.incubator.vector

2026-01-08 10:24:14.524 INFO  [ArcadeDBServer] <ArcadeDB_0> ArcadeDB Server v26.1.1-SNAPSHOT (build 1ee88b7d030a1e5bc17a35c61e5d7426f856eb40/1767823831033/main) is starting up...
2026-01-08 10:24:14.528 INFO  [ArcadeDBServer] <ArcadeDB_0> Running on Linux 6.6.87.2-microsoft-standard-WSL2 - OpenJDK 64-Bit Server VM 21.0.8 (Temurin-21.0.8+9)
2026-01-08 10:24:14.531 INFO  [ArcadeDBServer] <ArcadeDB_0> Starting ArcadeDB Server in development mode with plugins [] ...
2026-01-08 10:24:14.580 INFO  [ArcadeDBServer] <ArcadeDB_0> - Metrics Collection Started...

Screenshot

Image

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions