Closed rawbdor closed 2 years ago
@rawbdor do you have a link to the Dune dashboard we're fetching data from? For the landing page I do this in a 2 step process of fetching the current result id and then fetching data for that result id. I suspect the result id is stale here because it's hardcoded.
const DUNE_API = "https://core-hsr.duneanalytics.com/v1/graphql";
const body = {
operationName: "FindResultDataByResult",
query:
"query FindResultDataByResult($result_id: uuid!) {\n query_results(where: {id: {_eq: $result_id}}) {\n id\n job_id\n error\n runtime\n generated_at\n columns\n __typename\n }\n get_result_by_result_id(args: {want_result_id: $result_id}) {\n data\n __typename\n }\n}\n",
variables: { result_id: "90b9cec0-c576-4f87-b5e3-770ceaa99e45" },
};
So yeah it looks like the result_id is hard-coded, but I have no idea what the query id was or where we get it from. Is there a way to find a query id from a stale result id?
Seems pbamm uses the same utility method... bad
Thanks for the help @janklimo
JAR_LQTY (or "LQTY" as the api key) is showing no real yield.
Function
getOrLoadYearnDataFromDune
is returning a nully errory response:Request was as follows:
No idea how to fix this.