You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[LOG] ERROR: Error: ENOENT: no such file or directory, open '/tmp/token.txt'
at Object.openSync (node:fs:601:3)
at Object.func [as openSync] (node:electron/js2c/asar_bundle:2:2131)
at Object.readFileSync (node:fs:469:35)
at Object.readFileSync (node:electron/js2c/asar_bundle:2:9462)
at Class.search (C:\Users\Schueler\MagicMirror\modules\MMM-TuyaSL\node_helper.js:152:21)
at Class.socketNotificationReceived (C:\Users\Schueler\MagicMirror\modules\MMM-TuyaSL\node_helper.js:246:12)
at Socket. (C:\Users\Schueler\MagicMirror\js\node_helper.js:104:11)
at Socket.emit (node:events:513:28)
at Socket.emitUntyped (C:\Users\Schueler\MagicMirror\node_modules\socket.io\dist\typed-events.js:69:22)
at C:\Users\Schueler\MagicMirror\node_modules\socket.io\dist\socket.js:704:39
at process.processTicksAndRejections (node:internal/process/task_queues:77:11)
During the login function call at node_helper.js:115, the file /tmp/mmm-tuyasl-token.txt was not written successfully.
The possible reasons could be:
the axios.post request might have failed
the request might have succeeded, but the return of res.data.responseStatus led the code logic to node_helper.js:86, thereby preventing the execution of fs.writeFileSync('/tmp/mmm-tuyasl-token.txt', xxx).
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have no idea why it doesn't work, I'm grateful if someone can help me.
Sourcecode- MMM-TuyaSL-1.0.1.zip
Error:
[LOG] ERROR: Error: ENOENT: no such file or directory, open '/tmp/token.txt'
at Object.openSync (node:fs:601:3)
at Object.func [as openSync] (node:electron/js2c/asar_bundle:2:2131)
at Object.readFileSync (node:fs:469:35)
at Object.readFileSync (node:electron/js2c/asar_bundle:2:9462)
at Class.search (C:\Users\Schueler\MagicMirror\modules\MMM-TuyaSL\node_helper.js:152:21)
at Class.socketNotificationReceived (C:\Users\Schueler\MagicMirror\modules\MMM-TuyaSL\node_helper.js:246:12)
at Socket. (C:\Users\Schueler\MagicMirror\js\node_helper.js:104:11)
at Socket.emit (node:events:513:28)
at Socket.emitUntyped (C:\Users\Schueler\MagicMirror\node_modules\socket.io\dist\typed-events.js:69:22)
at C:\Users\Schueler\MagicMirror\node_modules\socket.io\dist\socket.js:704:39
at process.processTicksAndRejections (node:internal/process/task_queues:77:11)
Beta Was this translation helpful? Give feedback.
All reactions