Skip to content

[BUG] %%graph_notebook_config sometimes fails when Gremlin section is excluded #632

@michaelnchin

Description

@michaelnchin

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

When attempting to run %%graph_notebook_config on graph-notebook>=4.4.1 with a non-Neptune host and all other required fields, a KeyError is returned returned. This error appears related to the gremlin config sub-section, which should be an optional parameter.

Screenshot 2024-06-24 at 10 39 46 PM

Full error trace:

Traceback (most recent call last):
  File "/Users/chnmch/.pyenv/versions/3.10.13/envs/itables-cache-test-3/lib/python3.10/site-packages/graph_notebook/decorators/decorators.py", line 80, in do_display_exceptions
    return func(*args, **kwargs)
  File "/Users/chnmch/.pyenv/versions/3.10.13/envs/itables-cache-test-3/lib/python3.10/site-packages/graph_notebook/magics/graph_magic.py", line 457, in graph_notebook_config
    data = json.loads(cell)
  File "/Users/chnmch/.pyenv/versions/3.10.13/lib/python3.10/json/__init__.py", line 346, in loads
    return _default_decoder.decode(s)
  File "/Users/chnmch/.pyenv/versions/3.10.13/lib/python3.10/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/Users/chnmch/.pyenv/versions/3.10.13/lib/python3.10/json/decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 4 column 12 (char 55)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    Resolved

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions