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.

Apollo client stops sending requests

See original GitHub issue

I’m developing a web application that uses ApolloClient and ReactApollo to communicate with a qraphql api. On some pages, the apollo client works fine and sends the requests as expected. But on some pages, the client just stops sending requests and the loading flag is always true. I can see there are no requests in the Network tab in Chrome devtools.

So I started investigating the cause. I kept commenting out different parts of the code until I found the culprit. It’s the jwplayer. If I just comment out the line that initializes the jwplayer, everything works fine.

The jwplayer code is minified so I couldn’t figure out what was going on. Any advice on how to debug this? I’m surprised that external code can affect the way Apollo Client works and prevent it from sending requests.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
stubailocommented, Mar 25, 2017

Very little - just a few things so that the devtools can find your client. Nothing that would stop the client from working. Might be a good use case for a debugger - set a breakpoint right before firing the query, and then trace it through until something unexpected happens.

0reactions
helfercommented, Mar 28, 2017

Thanks @mdebbar. The PR has been merged and will be released shortly!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Federated server stops sending requests to one subgraph - Help
We have a single subgraph that stops receiving requests from the federated server. From the client end, the request times out.
Read more >
Apollo Client + Next.js not sending non-SSR requests
The problem is with non-SSR requests such as the one below where I get no response and in fact no request is being...
Read more >
apollo-link-persisted-queries - npm
Automatic Persisted Queries solves this problem by sending a generated ID instead of the query text as the request.
Read more >
A complete introduction to Apollo, the GraphQL toolkit - Medium
Apollo Server is the server part of GraphQL, which interfaces with your backend and sends responses back to the client requests. Apollo Engine...
Read more >
GraphQL on iOS: How We Decided Against Apollo & Where ...
That's not going to work for every app: Apollo is an opinionated library, ... for the data we expect; the body of the...
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