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 often returns incomplete responses. #2

Open Moogamouth opened 2 years ago

Moogamouth commented 2 years ago

Please note, this could be an arweave-js issue. I repeatedly ran the following code in node.js:

while (!block.data) {try {block = (await arweave.api.post("/graphql", {query: `{transactions(block:{min:340915,max:340915}){edges{node{id}}}}`}));}finally{}}
try {block = block.data.data.transactions;}finally{}

It would sometimes return a full response containing all txids. At other times, it would only return 2 txids out of 8, seemingly random.