pygraphistry
pygraphistry copied to clipboard
register method not working when using token argument instead of name and password
When running the provided code from the 'get started quickly' section on the graphistry site:
graphistry.register(api=3, protocol="https", server="hub.graphistry.com", token="...")
I get the following:
Traceback (most recent call last):
File "C:\Users\bonkr\PycharmProjects\semnet\venv\lib\site-packages\graphistry\pygraphistry.py", line 131, in refresh
return PyGraphistry.relogin()
File "C:\Users\bonkr\PycharmProjects\semnet\venv\lib\site-packages\graphistry\pygraphistry.py", line 104, in
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:/Users/bonkr/PycharmProjects/semnet/main.py", line 19, in
When I use password and name it works.
Thank you for catching this!
Hello, I'm still reproducing this error. Can I know, Whether it's resolved in the latest versions? Graphistry version = "0.28.3"
Hello, I'm still reproducing this error. Can I know, Whether it's resolved in the latest versions? Graphistry version = "0.28.3"
No worries, Figured it out. Need to run the login register first
graphistry.register(api=3, protocol="https", server="hub.graphistry.com", username="...", password="...")
and then the graphistry.register(api=3, protocol="https", server="hub.graphistry.com", token="...")
fwiw, some good news here: the next release adds revocable api keys! so can move away from user/pass
out of curiosity, why are you using the jwt token, vs just user/pass?