Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GraphQL often returns incomplete responses. #2

Open
Moogamouth opened this issue Sep 4, 2022 · 0 comments
Open

GraphQL often returns incomplete responses. #2

Moogamouth opened this issue Sep 4, 2022 · 0 comments

Comments

@Moogamouth
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant