question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Query Batching error [Wordpress graphql]

See original GitHub issue

Hello i try to use query batching with worpdress graphql but i got a error CombinedError

When i don’t use the batcher() i see 2 call with no error

Screen Shot 2020-04-13 at 11 34 56 AM

When i activate it

    useClient({
      url: '/cms/graphql',
      fetch: batcher()
    })

I see the call, the response seem to be good, an array of 2 objects

Screen Shot 2020-04-13 at 11 34 28 AM

But i get an error on each component response.

Screen Shot 2020-04-13 at 11 33 53 AM

Do you have an idea of who we can fix that ? A villius issue or wp-graphql issue ?

Thanks

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
logaretmcommented, Apr 19, 2020

0.4.2 and 1.0.0-alpha.6 were released with this fix.

0reactions
stephanedemottecommented, Apr 20, 2020

yeah !

Read more comments on GitHub >

github_iconTop Results From Across the Web

GraphQL Batching Attack - Wallarm
The technique of batching the requests is described in the GraphQL spec published in June 2018 in section 6.3.1 and it describes this ......
Read more >
Executing multiple queries concurrently
The multiple queries are executed in the same requested order. ✳️ Note: This is different from query batching, in which the GraphQL server...
Read more >
WPGraphQL < 1.3.6 - Denial of Service - WPScan
This attack uses duplication of fields amplified by GraphQL batched queries, resulting in server OOM and MySQL connection errors.
Read more >
Executing multiple queries in a single operation in GraphQL
This is not query batching. When doing query batching, the GraphQL server executes multiple queries in a single request.
Read more >
WPGraphQL vs. WP REST API
... using GraphiQL to query the Github GraphQL API for Repositories and using the same tool in the WordPress admin for querying Posts...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found