ar-io / arweave-gateway

The classic Arweave Gateway, deployable in AWS Cloud using Terraform
GNU General Public License v3.0
16 stars 4 forks source link

GraphQL returns error when fetching transactions with anchor if there's bundled transaction that matches query #4

Open angrymouse opened 1 year ago

angrymouse commented 1 year ago

Example of response when it happens:

{
    "errors": [
        {
            "message": "Cannot return null for non-nullable field Transaction.anchor.",
            "locations": [
                {
                    "line": 1,
                    "column": 470
                }
            ],
            "path": [
                "transactions",
                "edges",
                0,
                "node",
                "anchor"
            ],
            "extensions": {
                "code": "INTERNAL_SERVER_ERROR"
            }
        }
    ],
    "data": null
}
angrymouse commented 1 year ago

2 possible correct behavoirs: