itzmestar/duneanalytics

Dune has updated api to v3

Closed this issue · 10 comments

Dune has updated api to v3, the pip may fail.

bixia commented

the same problem, it fails with error:

{"errors": [{"extensions": {"path": "$", "code": "unexpected"}, "message": "database query error"}]}

i dont see any error. I am based in India.

i dont see any error. I am based in India.

It works with old queries but new ones fail with that error :-(

Share few queries which are failing?

Here is the query that seems to be falling and I have tried dune_query_result_id and it does not seem to return None with that query

image

Running dune.query_result_id(1105079) gives the following error:

ERROR : query_result_id : [{'extensions': {'path': '$', 'code': 'validation-failed'}, 'message': 'query is not allowed'}]

Here's the query on dune: https://dune.com/queries/1105079

any update @itzmestar?

Works seamlessly now! Thanks a ton.

But it doesn't work for this query (https://dune.com/queries/1109126).
dune.query_result_id_v3(1109126) returns None.
dune.query_result_id(1109126) returns the same old error:

ERROR : query_result_id : [{'extensions': {'path': '$', 'code': 'validation-failed'}, 'message': 'query is not allowed'}]

It seems to be working now. Don't know why and what happened. Thanks for your awesome work!