Error: write after end
See original GitHub issueI’m trying to get a list of all open windows. Seems to me like an actual issue with node-x11 and not x11 itself:
This is the stacktrace:
Error: write after end
at writeAfterEnd (_stream_writable.js:193:12)
at Socket.Writable.write (_stream_writable.js:244:5)
at Socket.write (net.js:658:40)
at UnpackStream.<anonymous> (/home/user/app/node_modules/x11/lib/xcore.js:82:16)
at emitOne (events.js:96:13)
at UnpackStream.emit (events.js:188:7)
at UnpackStream.flush (/home/user/app/node_modules/x11/lib/unpackstream.js:311:15)
at XClient.req_proxy [as GetProperty] (/home/user/app/node_modules/x11/lib/xcore.js:231:37)
at X.InternAtom (/home/user/app/x11-wrapper.js:99:7)
at ReadFixedRequest.callback (/home/user/app/node_modules/x11/lib/xcore.js:545:21)
This is the code I’m running:
X.InternAtom(false, '_NET_CLIENT_LIST', (err, atomId) => {
console.log(atomId);
X.GetProperty(0, root, atomId, X.atoms.CARDINAL, 0, 100000, (err, prop) => {
console.log('HERE', prop.data, prop.data.toString());
});
});
_NET_CLIENT_LIST_STACKING
and _WIN_CLIENT_LIST
result in the same error. So does leaving out the additional parameters.
Issue Analytics
- State:
- Created 6 years ago
- Comments:9 (3 by maintainers)
Top Results From Across the Web
Write After End error in node.js webserver
I am struggling with my node.js hobby project due to a "write after end" Error. I have a created a node.js webserver that...
Read more >write after end · Issue #928 · tulios/kafkajs - Connection error
After the update, we noticed that a new error is logged in our production server: Message: Connection error: write after end Stack: Error ......
Read more >Server crashes with even simplest code. : r/node
this is error events.js:352 throw er; // Unhandled 'error' event Error [ERR_STREAM_WRITE_AFTER_END]: write after end at writeAfterEnd…
Read more >Error: write after end (Example)
Node is asynchronous, which means that functions happen at the same time. Write after end means that something is being written after the...
Read more >[ERR_STREAM_WRITE_AFTER_END]: write after end
Hey guys! I use aws-sdk for NodeJS for Linode Object Storage but I get the following error `[ERR_STREAM_WRITE_AFTER_END]: write after end` when uploading ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
My bad. The issue was recreating and terminating the x11 server for every command I executed…
I get the same when I try to get all the properties of a window, like in this smoke test: