Comments (16)
Hi @jerelmiller in my case its working now!! I just restarted NextJS dev server and Chrome and seems to be working fine again. I dont know what caused the issue
from apollo-client-devtools.
Same here, in my case after showing the Looking for client...
it says:
Unable to communicate with browser tab. Please reload the window and restart the devtools to try again
But reloading the page doesnt fix the problem
from apollo-client-devtools.
Hey @BerekHalfhand and @angelhodar 👋
So sorry about this! By chance do you know what extension version you were using before? I assume that version was working ok?
Could you try a couple things for me to help me debug? I'm unable to reproduce locally, so any information you can give me would be super helpful. Alternatively if you have an reproduction that I can use to test against, that would be amazing.
First of all, can you check 2 things to see if these values are defined?
window.__APOLLO_CLIENT__
window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__.ApolloClient
If those are set and not undefined
, I'd like to see if your page is getting messages from the devtools. You can check it with this:
window.addEventListener('message', (event) => console.log(event.data))
Try running this immediately after loading the page to see if you get any events coming through.
Any more info you can give me to help me debug would be super helpful! I'd like to get a fix in as soon as I can help verify what the issue is.
from apollo-client-devtools.
Ok! That's great news! Thanks for letting me know :)
from apollo-client-devtools.
@BerekHalfhand is the problem still persisting for you?
If yes, could you please try it on this page and give us feedback if it works there?
https://phryneas.github.io/ac-devtools-test/
from apollo-client-devtools.
@phryneas somehow it's working for me now, on the same version. Dunno how
window.__APOLLO_CLIENT__ window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__.ApolloClient
Both are set
from apollo-client-devtools.
@BerekHalfhand That's great to hear! I'm going to close this issue now. Have a great day!
from apollo-client-devtools.
Do you have any feedback for the maintainers? Please tell us by taking a one-minute survey. Your responses will help us understand Apollo Client usage and allow us to serve you better.
from apollo-client-devtools.
Hi there, same problem here.
I have:
window.__APOLLO_CLIENT__
window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__.ApolloClient
Both set with proper values.
I have tried what @jerelmiller is suggesting:
Hey @BerekHalfhand and @angelhodar 👋
So sorry about this! By chance do you know what extension version you were using before? I assume that version was working ok?
Could you try a couple things for me to help me debug? I'm unable to reproduce locally, so any information you can give me would be super helpful. Alternatively if you have an reproduction that I can use to test against, that would be amazing.
First of all, can you check 2 things to see if these values are defined?
window.__APOLLO_CLIENT__ window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__.ApolloClientIf those are set and not
undefined
, I'd like to see if your page is getting messages from the devtools. You can check it with this:window.addEventListener('message', (event) => console.log(event.data))Try running this immediately after loading the page to see if you get any events coming through.
Any more info you can give me to help me debug would be super helpful! I'd like to get a fix in as soon as I can help verify what the issue is.
And I am getting a lot of events:
Still, it never finds the client and stays "Looking for client"...
I have version 4.7.0
from apollo-client-devtools.
@Richacinas those messages are coming from React devtools, not the Apollo Client devtools. The Apollo Devtools would have a message like:
{
source: 'apollo-client-devtools',
message: { ... }
}
Seems as though the messages aren't making it from the devtools panel to the window. Could you try closing devtools, reloading the page, then reopening the apollo devtools panel to see if you're still seeing the same thing? Also, what version of Apollo Client are you on? I'll keep digging into this. If you have a reproduction, that would also be super helpful 🙂
from apollo-client-devtools.
I forgot to mention, those messages are only sent with the devtools panel is open. You'll need to switch to the Apollo devtools panel, then check the console to see if those messages are coming through. Should look something like this:
from apollo-client-devtools.
@Richacinas those messages are coming from React devtools, not the Apollo Client devtools. The Apollo Devtools would have a message like:
{ source: 'apollo-client-devtools', message: { ... } }Seems as though the messages aren't making it from the devtools panel to the window. Could you try closing devtools, reloading the page, then reopening the apollo devtools panel to see if you're still seeing the same thing? Also, what version of Apollo Client are you on? I'll keep digging into this. If you have a reproduction, that would also be super helpful 🙂
I tried reloading, and it worked. However, there is a random (and frecuent) problem as I described above. It happens a lot to me, usually I try to open this Apollo tab on dev tools after a while, and now I tried just after reloading.. I don't know if that is relevant.
My apollo client version is 3.7.1
from apollo-client-devtools.
@Richacinas we changed the devtools registration mechanism of Apollo Client in version 3.8.3, so it might be worthwhile for you to update to that at least to get better DevTools functionality.
from apollo-client-devtools.
@phryneas thank you very much.
Right now I can't update apollo client, I'm working on a big corporative app and it doesn't depend on me these kind of changes.
Honestly, today it has been working great. I didn't find the problem anymore.. I don't know why.
So, if you prefer, let's close this issue and if it comes up again, I will try to open it with a reproduction environment and all the information.
BTW: I see one weird thing, and that is that some queries don't appear (see below image, the queries named "predict..."):
Thank you again
from apollo-client-devtools.
@Richacinas glad to hear it! Please do let us know if you see issues like this and we will try and address. A new issue would be great to track this separately.
Since it seems like this issue is more-or-less resolved, I'll go ahead and close this issue. I'll keep an eye out to see if we get intermittent failures and if there is more opportunity to ensure the client detection is robust.
Thanks all!
from apollo-client-devtools.
Do you have any feedback for the maintainers? Please tell us by taking a one-minute survey. Your responses will help us understand Apollo Client usage and allow us to serve you better.
from apollo-client-devtools.
Related Issues (20)
- Finish Tailwind migration HOT 1
- Active queries disappear when used with RedwoodJS
- Dependency Dashboard
- Extension prevents websites (tested on atlassian.com) from loading styles HOT 9
- Not working! Apollo Client Devtools on Chrome latest HOT 17
- Doesn't work in latest Chromium-based MS Edge HOT 6
- Server side mutation errors are not reported in the explorer HOT 2
- Impossible to track newly-created ApolloClients HOT 3
- Reactive Var Tab HOT 1
- Cache tab explodes causing the devtools to crash
- DevTools does not show any data for my app HOT 11
- Intermittent connection issues when first opening dev tools HOT 5
- unable to load devtool properly. Failed to execute 'postMessage' on 'Window' HOT 5
- v4.8.1 breaks Google Cloud Console on Arc & Chrome for Mac HOT 4
- Provide development apps that contains irregular cache data
- not show any data HOT 3
- Apollo Client Dev Tools get stuck HOT 3
- Extension causes query response handling to fail. Uncaught TypeError: Cannot convert object to primitive value HOT 6
- Serious memory leak issue with the devtools extension HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apollo-client-devtools.