TheFrozenFire / dune-analytics

An interface for querying Dune Analytics in Python
MIT License
16 stars 5 forks source link

AttributeError: 'NoneType' object has no attribute 'post' #1

Open xekor opened 3 years ago

xekor commented 3 years ago

Attempting to run and immediately hit with this error.

Seems like: csrf = transport.session.post("https://duneanalytics.com/api/auth/csrf").json()['csrf'] is returning a NoneType object.

mark-bak commented 3 years ago

also getting this error

qihangwang commented 3 years ago

me too

KOD69 commented 2 years ago

urls changed. Try https://dune.xyz, instead of https://duneanalytics.com

JithinKS97 commented 2 years ago

I changed the url to https://dune.xyz still getting the error. Any idea?

admir-selimovic commented 2 years ago

I changed the url to https://dune.xyz still getting the error. Any idea?

Even after changing the urls, the issue persists:

/usr/local/lib/python3.7/dist-packages/dune_analytics/init.py in authenticate(self, username, password) 17 transport = self.client.transport 18 ---> 19 csrf = transport.session.post("https://dune.xyz/api/auth/csrf").json()['csrf'] 20 r_auth = transport.session.post("https://dune.xyz/api/auth", data={ 21 "csrf": csrf,

AttributeError: 'NoneType' object has no attribute 'post'

ericsonlee commented 2 years ago

having the same problem. anyone knows how to fix this?