husudosu / husudosu/mpv-remote-app

Problem ERR_SOCKET_CLOSED

Open
#22 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Vue
Stars
97
Forks
8
PR merge metrics
No merged PRs in 30d

Description

I get this error since yesterday, before everything was fine.

PS Desktop> mpv
[mpvremote] listening on 192.168.0.126:8000
[mpvremote] true
[mpvremote] {"error_string":"","killed_by_us":false,"status":1,"stderr":"node:events:495\n throw er; // Unhandled 'error' event\n ^\n\nError [ERR_SOCKET_CLOSED]: Socket is closed\n at new NodeError (node:internal/errors:405:5)\n at Socket._writeGeneric (node:net:953:8)\n at Socket._write (node:net:975:8)\n at writeOrBuffer (node:internal/streams/writable:392:12)\n at _write (node:internal/streams/writable:333:10)\n at Writable.write (node:internal/streams/writable:337:10)\n at /usr/local/lib/node_modules/mpv-remote/node_modules/node-mpv/lib/ipcInterface/ipcInterface.js:209:17\n at new Promise ()\n at ipcInterface.send (/usr/local/lib/node_modules/mpv-remote/node_modules/node-mpv/lib/ipcInterface/ipcInterface.js:190:10)\n at ipcInterface.getProperty (/usr/local/lib/node_modules/mpv-remote/node_modules/node-mpv/lib/ipcInterface/ipcInterface.js:117:15)\nEmitted 'error' event on Socket instance at:\n at emitErrorNT (node:internal/streams/destroy:151:8)\n at emitErrorCloseNT (node:internal/streams/destroy:116:3)\n at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {\n code: 'ERR_SOCKET_CLOSED'\n}\n\nNode.js v18.19.1\n"}
[mpvremote] ""

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with node-mpv's ipcInterface.js at the send and getProperty calls shown in the stack trace, and reproduce the failure with Node.js v18.19.1 and mpv-remote. Determine why the socket is closed before the write; done means the reported ERR_SOCKET_CLOSED failure is handled or prevented during this flow.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js
Domain
networking
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.