Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
michaelnchin opened this issue Jun 25, 2024 · 0 comments · Fixed by #633
Closed

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

michaelnchin opened this issue Jun 25, 2024 · 0 comments · Fixed by #633
Labels
bug Something isn't working

Comments

@michaelnchin
Copy link
Member

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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Resolved
Development

Successfully merging a pull request may close this issue.

1 participant