ourzora / ocs-hackathon-24

Zora Onchain Summer Hackathon 24 Guide
7 stars 0 forks source link

graphql api error #5

Closed grachyov closed 3 weeks ago

grachyov commented 3 weeks ago

using https://api.zora.co/graphql

getting an error for the query below

it worked well before

{
    tokens(
        sort: {sortKey: NONE, sortDirection: DESC},
        networks: [{network: ZORA, chain: ZORA_MAINNET}],
        pagination: {limit: 10},
        where: {ownerAddresses: ["0x82806578886c2b0a8E44a9EB52718325af1335B1"]}) {

        pageInfo {
            endCursor
            hasNextPage
        }

        nodes {
            token {
                tokenId
                name
                owner
                collectionName
                collectionAddress
                tokenUrl
                tokenUrlMimeType
                tokenStandard
                description
                image {
                    url
                    mimeType
                    size
                    mediaEncoding {
                        ... on ImageEncodingTypes {
                            original
                            thumbnail
                        }
                    }
                }
                content {
                    url
                    mimeType
                    size
                    mediaEncoding {
                        ... on VideoEncodingTypes {
                            original
                            preview
                        }
                        ... on AudioEncodingTypes {
                            large
                            original
                        }
                    }
                }
            }
        }
    }
}
{
  "errors": [
    {
      "message": "The string did not match the expected pattern.",
      "stack": ""
    }
  ]
}
grachyov commented 3 weeks ago

this query only works now if i remove content from it

grachyov commented 3 weeks ago

it's ok now

it wasn't working for a couple of hours though

IsabellaSmallcombe commented 3 weeks ago

hey @grachyov, going to close this issue for now as the query is working for me. Feel free to reopen this issue if you see it happening again