Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

networkRequest.js trying to fetch JSON list error #1137

Closed
jacobjzhang opened this issue Nov 6, 2016 · 4 comments
Closed

networkRequest.js trying to fetch JSON list error #1137

jacobjzhang opened this issue Nov 6, 2016 · 4 comments

Comments

@jacobjzhang
Copy link
Contributor

Upon running 'npm start', the debugger console shows this error. I'm sure that I'm not utilizing that port for any other purpose, as the only other window open was http://localhost:7999/todomvc/ in Firefox for the backbone app.

Screenshot attached.
screen shot 2016-11-06 at 4 29 11 pm

@jasonLaster
Copy link
Contributor

Great issue. i'd noticed that as well. this is the debugger trying to connect to chrome. We should do something to suppress this or make it more clear.

@jasonLaster
Copy link
Contributor

This patch is likely the fix

diff --git a/packages/devtools-local-toolbox/src/index.js b/packages/devtools-local-toolbox/src/index.js
index a1dd65c..8e32bdf 100644
--- a/packages/devtools-local-toolbox/src/index.js
+++ b/packages/devtools-local-toolbox/src/index.js
@@ -114,6 +114,9 @@ function bootstrap(React, ReactDOM, App, appActions, appStore) {
     });
     chrome.connectNodeClient().then(tabs => {
       actions.newTabs(tabs);
+    }).catch(e => {
+      console.log("Connect to node:");
+      console.log("https://github.com/devtools-html/debugger.html/blob/master/CONTRIBUTING.md#node");
     });
     return firefox.connectClient().then(tabs => {
       actions.newTabs(tabs);

@jasonLaster
Copy link
Contributor

@jacobjzhang interested?

@jasonLaster
Copy link
Contributor

moved to devtools-core #1485

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

No branches or pull requests

2 participants