Back to All

Aptos Indexer API Graphql Query Error

I'm trying to run following query:
query MyQuery {
current_token_ownerships_v2 {
current_token_data {
cdn_asset_uris {
cdn_image_uri
}
}
}
}

and getting this output:
{
"errors": [
{
"message": "database query error",
"extensions": {
"path": "$",
"code": "unexpected",
"internal": {
"arguments": [
"(Oid 114,Just ("{\"x-hasura-role\":\"anonymous\"}",Binary))"
],
"error": {
"description": null,
"execstatus": "FatalError",
"hint": null,
"message": "permission denied for schema nft_metadata_crawler",
"status_code": "42501"
},
"prepared": true,
"statement": "SELECT coalesce(json_agg("root" ), '[]' ) AS "root" FROM (SELECT row_to_json((SELECT "_e" FROM (SELECT "_root.or.current_token_data"."current_token_data" AS "current_token_data" ) AS "_e" ) ) AS "root" FROM (SELECT
FROM "public"."currenttoken_ownerships_v2" WHERE ('true') LIMIT 100 ) AS "_root.base" LEFT OUTER JOIN LATERAL (SELECT row_to_json((SELECT "_e" FROM (SELECT "_root.or.current_token_data.or.cdn_asset_uris"."cdn_asset_uris" AS "cdn_asset_uris" ) AS "_e" ) ) AS "current_token_data" FROM (SELECT FROM "public"."current_token_datas_v2" WHERE (("_root.base"."token_data_id") = ("token_data_id")) LIMIT 1 ) AS "_root.or.current_token_data.base" LEFT OUTER JOIN LATERAL (SELECT row_to_json((SELECT "_e" FROM (SELECT "_root.or.current_token_data.or.cdn_asset_uris.base"."cdn_image_uri" AS "cdn_image_uri" ) AS "_e" ) ) AS "cdn_asset_uris" FROM (SELECT * FROM "nft_metadata_crawler"."parsed_asset_uris" WHERE (("_root.or.current_token_data.base"."token_uri") = ("asset_uri")) LIMIT 1 ) AS "_root.or.current_token_data.or.cdn_asset_uris.base" ) AS "_root.or.current_token_data.or.cdn_asset_uris" ON ('true') ) AS "_root.or.current_token_data" ON ('true') ) AS "_root" "
}
}
}
]
}

Note: the same query works with https://api.mainnet.aptoslabs.com/v1/graphql indexer.