Disabling large parts
I tried disabling large parts, even deleting them thinking that maybe disabled is not enough. For example I had a flow only with past tests to understand nodes, I deleted all those. It's now much less than it was when it was working.
where is node-red running in relation to the browser
Same computer, but it can be edited through LAN from another PC, same no-debug output.
I am having a similar issue. It may be quite different than issues seen here as my flow stops working when adding in debug nodes. I have 3 existing debug nodes in the flow that work fine. When I add any more the flow stops and there is no debug outputs in the side bar. I can inject a timestamp into the debug nodes and they work. But rest of the flow doesn't work.
One thing I have found playing with it is, I add the 4th and 5th debug nodes and disable them. Then deploy full flow. Then enable the 4th and 5th debug nodes and the entire flow including all debug nodes starts to function fully.
If I deploy 4th and/or 5th node enabled first, then nothing works.
Actually, in setting up the flow for updating this thread I see something new again. The flow works deploying it with all the debug nodes enabled, when there is an inject node present as shown in following picture. Hope this helps.
I am new user and limited to 3 replies. So this will be the last I can post until then.
My console just started working. But everything in global context was lost. So it seems to have been related to context somehow. I am very sorry I can not tell you a solution, as I don't know why this happened, but this information might help developers in some way maybe.
So if you have this problem, try cleaning up everything in your global variables.
When you say you have "Same issue trying simple hello world" - that means you are running on IBM Cloud, use Firefox Browser & having intermittent issues - like in the post you replied to?
Have you read through the whole thread?
checking browsers developer tools for errors
disabling any ad blockers/AV on computer / browser
etc
etc
there are several suggestions - have you tried them?
Lastly, you dont say what versions of nodejs, node-red etc.
For all newbies like: Maybe you missed one sentence in one step in the tutorial.
In Creating your first flow : Node-RED step 5 says that one should deploy and also says "click the Inject button". I missed that text, and also, as a newbie I didn't know what "clicking the inject button" means.
It means pressing this button means pressing the little square next to the inject node:
I recommend watching this playlist: Node-RED Essentials. The videos are done by the developers of node-red. They're nice & short and to the point. You will understand a whole lot in about 1 hour.
This seems to be the thread about mysterious stuff not working
Reading through, what I can recommend is:
restart node-red and capture the log output, paste it here verbatim uncut
open the flow editor in the web browser, then open the devtools (F12)
ensure the debug node's button is on (dark green), hit the inject node's button
check in the browser devtools "console" tab for any errors, post the entire contents here
check in the browser devtools "network" tab for anything that doesn't have a 200 or 304 status
Someone asked about what the websocket protocol looks like. The answer is that it's HTTP (!). The browser sends and HTTP request that has an "upgrade" header, the server responds with an HTTP response, and then the socket is used bidirectionally for websocket messages. So it kind'a looks like a very long running HTTP request with packets going back and forth.
One unfortunate thing is that browsers provide virtually no error information about a websocket. The app is lucky if it gets an error at all, but there's no error code, no error message. This makes it quite difficult to distinguish "something insignificant happened, just retry" from "there is an error, tell the user now" and all one can say is "there is an error" which is not very actionable from a user point of view...