digital-science / dimcli

Python client and CLI for scientometrics and research analytics using the Dimensions API.
https://digital-science.github.io/dimcli/getting-started.html
MIT License
45 stars 7 forks source link

Javascript Error: Cannot access 'ne' before initialization #83

Open Tilana opened 4 months ago

Tilana commented 4 months ago

When trying to access the results of a dimcli query I experience the following error: Javascript Error: Cannot access 'ne' before initialization

It seems that the API connection works and that data is retrieved, however, accessing the data causes the error. The error can be reproduced with the following code:

dsl = dimcli.Dsl()
dsl.query("""search grants for "malaria" return researchers limit 10""")

which returns this result:

Returned Researchers: 10
Time: 2.28s
Javascript Error: Cannot access 'ne' before initialization

The same query on the dimcli command line works without problems.

Are any dependency updates causing the issue?

Thanks for taking a look! Dimcli is a great tool to work with.

lambdamusic commented 4 months ago

Hi @Tilana what are your environment specs?

The query runs fine for me in Jupyter

image