-
Notifications
You must be signed in to change notification settings - Fork 712
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
Scope stuck "connecting to scope" #2154
Comments
Looks like requests to the backend are malformed when used in the service UI: Notice the double Possible introduced by #2144 |
Interestingly, I did test prod right after the upgrade and Scope was working. Could it be due to caching of the assets? |
That could have been masking the issue. |
So, IMO, we need to do three things to prevent this from happening in the future:
|
But let´s of course first figure out what the problem is. |
I thought we had some metrics/alerts for set up to catch this sort of breakage. |
Assuming the problem comes from the UI, I don´t think so. |
We have monitoring in place, see https://github.com/weaveworks/monitoring/issues/101 |
exactly.
Understood, but did this problem at least show up in the data? |
@rade This was neither a page-load or page-render error. The app was served successfully and the requested page was rendered. This is the result of a bad URL path resulting in index.html being served to a call that expects JSON. Our HTTP library decided it was a string and passed it to a .filter() call. |
Did you track down how the bad URL was generated? |
This was the commit I was referring to that never got pushed: 8ea7de9 |
Fixed in #2159 |
Note how the url is wrong: https://cloud.weave.works/api/demo/api |
I reverted prod to 244bba2 but it's still reproducible at http://frontend.dev.weave.works/demo/ |
@jpellizzari to debug this, you can simply run At first glance it looks like this heuristic caused the problem: const isStandalone = window.location.pathname === '/' || /\/(.+).html/.test(window.location.pathname); Maybe better to detect the opposite (scope-as-component)? |
@awh discovered we are having the same (or similar problem) at For instance, at http://frontend.dev.weave.works/admin/scope/ I get:
|
It's the same problem (the UI is requesting |
#2202 Has been merged and pushed to dev and is working correctly. |
With this in the console:
The text was updated successfully, but these errors were encountered: