Issue was related to the url of whisper and mimic, they should include http://
Read the statement by Michael Teeuw here.
Posts
-
RE: MMM-WhisperGPT
-
MMM-WhisperGPT
Hi, I am trying to implement this module into my mirror, I’ve setup all dependencies, however I am getting this error after recording the request
[14.09.2023 12:26.49.147] [ERROR] Error uploading file: AxiosError: connect ECONNREFUSED ::1:80 at AxiosError.from (/home/pi/MagicMirror/modules/MMM-WhisperGPT/node_modules/axios/dist/node/axios.cjs:836:14) at RedirectableRequest.handleRequestError (/home/pi/MagicMirror/modules/MMM-WhisperGPT/node_modules/axios/dist/node/axios.cjs:3010:25) at RedirectableRequest.emit (node:events:526:35) at eventHandlers.<computed> (/home/pi/MagicMirror/modules/MMM-WhisperGPT/node_modules/follow-redirects/index.js:14:24) at ClientRequest.emit (node:events:514:28) at Socket.socketErrorListener (node:_http_client:501:9) at Socket.emit (node:events:514:28) at emitErrorNT (node:internal/streams/destroy:151:8) at emitErrorCloseNT (node:internal/streams/destroy:116:3) at process.processTicksAndRejections (node:internal/process/task_queues:82:21) { port: 80, address: '::1', syscall: 'connect', code: 'ECONNREFUSED', errno: -111, config: { transitional: { silentJSONParsing: true, forcedJSONParsing: true, clarifyTimeoutError: false }, adapter: [ 'xhr', 'http' ], transformRequest: [ [Function: transformRequest] ], transformResponse: [ [Function: transformResponse] ], timeout: 0, xsrfCookieName: 'XSRF-TOKEN', xsrfHeaderName: 'X-XSRF-TOKEN', maxContentLength: -1, maxBodyLength: -1, env: { FormData: [Function], Blob: [class Blob] }, validateStatus: [Function: validateStatus], headers: AxiosHeaders { Accept: 'application/json, text/plain, */*', 'Content-Type': 'multipart/form-data; boundary=--------------------------751421172292702686143612', 'User-Agent': 'axios/1.4.0', 'Content-Length': '122615', 'Accept-Encoding': 'gzip, compress, deflate, br' }, params: { method: 'openai-whisper', task: 'transcribe', language: 'en', encode: true, output: 'json' }, method: 'post', url: '192.168.0.18:9000/asr', data: FormData { _overheadLength: 159, _valueLength: 0, _valuesToMeasure: [Array], writable: true, readable: true, dataSize: 0, maxDataSize: 2097152, pauseStreams: true, _released: true, _streams: [Array], _currentStream: [DelayedStream], _insideLoop: false, _pendingNext: false, _boundary: '--------------------------751421172292702686143612', _events: [Object: null prototype], _eventsCount: 4 } }, request: <ref *1> Writable { _writableState: WritableState { objectMode: false, highWaterMark: 16384, finalCalled: false, needDrain: false, ending: false, ended: false, finished: false, destroyed: false, decodeStrings: true, defaultEncoding: 'utf8', length: 0, writing: false, corked: 0, sync: true, bufferProcessing: false, onwrite: [Function: bound onwrite], writecb: null, writelen: 0, afterWriteTickInfo: null, buffered: [], bufferedIndex: 0, allBuffers: true, allNoop: true, pendingcb: 0, constructed: true, prefinished: false, errorEmitted: false, emitClose: true, autoDestroy: true, errored: null, closed: false, closeEmitted: false, [Symbol(kOnFinished)]: [] }, _events: [Object: null prototype] { response: [Function: handleResponse], error: [Function: handleRequestError], socket: [Function: handleRequestSocket] }, _eventsCount: 3, _maxListeners: undefined, _options: { maxRedirects: 21, maxBodyLength: Infinity, protocol: 'http:', path: '/192.168.0.18:9000/asr?method=openai-whisper&task=transcribe&language=en&encode=true&output=json', method: 'POST', headers: [Object: null prototype], agents: [Object], auth: undefined, family: undefined, lookup: undefined, beforeRedirect: [Function: dispatchBeforeRedirect], beforeRedirects: [Object], hostname: 'localhost', port: '', agent: undefined, nativeProtocols: [Object], pathname: '/192.168.0.18:9000/asr', search: '?method=openai-whisper&task=transcribe&language=en&encode=true&output=json' }, _ended: false, _ending: false, _redirectCount: 0, _redirects: [], _requestBodyLength: 122557, _requestBodyBuffers: [ [Object], [Object], [Object] ], _onNativeResponse: [Function (anonymous)], _currentRequest: ClientRequest { _events: [Object: null prototype], _eventsCount: 7, _maxListeners: undefined, outputData: [], outputSize: 0, writable: true, destroyed: false, _last: true, chunkedEncoding: false, shouldKeepAlive: false, maxRequestsOnConnectionReached: false, _defaultKeepAlive: true, useChunkedEncodingByDefault: true, sendDate: false, _removedConnection: false, _removedContLen: false, _removedTE: false, strictContentLength: false, _contentLength: '122615', _hasBody: true, _trailer: '', finished: false, _headerSent: true, _closed: false, socket: [Socket], _header: 'POST /192.168.0.18:9000/asr?method=openai-whisper&task=transcribe&language=en&encode=true&output=json HTTP/1.1\r\n' + 'Accept: application/json, text/plain, */*\r\n' + 'Content-Type: multipart/form-data; boundary=--------------------------751421172292702686143612\r\n' + 'User-Agent: axios/1.4.0\r\n' + 'Content-Length: 122615\r\n' + 'Accept-Encoding: gzip, compress, deflate, br\r\n' + 'Host: localhost\r\n' + 'Connection: close\r\n' + '\r\n', _keepAliveTimeout: 0, _onPendingData: [Function: nop], agent: [Agent], socketPath: undefined, method: 'POST', maxHeaderSize: undefined, insecureHTTPParser: undefined, joinDuplicateHeaders: undefined, path: '/192.168.0.18:9000/asr?method=openai-whisper&task=transcribe&language=en&encode=true&output=json', _ended: false, res: null, aborted: false, timeoutCb: null, upgradeOrConnect: false, parser: null, maxHeadersCount: null, reusedSocket: false, host: 'localhost', protocol: 'http:', _redirectable: [Circular *1], [Symbol(kCapture)]: false, [Symbol(kBytesWritten)]: 0, [Symbol(kNeedDrain)]: true, [Symbol(corked)]: 0, [Symbol(kOutHeaders)]: [Object: null prototype], [Symbol(errored)]: null, [Symbol(kHighWaterMark)]: 16384, [Symbol(kRejectNonStandardBodyWrites)]: false, [Symbol(kUniqueHeaders)]: null }, _currentUrl: 'http://localhost/192.168.0.18:9000/asr?method=openai-whisper&task=transcribe&language=en&encode=true&output=json', [Symbol(kCapture)]: false }, cause: Error: connect ECONNREFUSED ::1:80 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1495:16) { errno: -111, code: 'ECONNREFUSED', syscall: 'connect', address: '::1', port: 80 } } [14.09.2023 12:26.49.157] [ERROR] Whoops! There was an uncaught exception... [14.09.2023 12:26.49.158] [ERROR] TypeError: Cannot read properties of undefined (reading 'toLowerCase') at Class.stopRecording (/home/pi/MagicMirror/modules/MMM-WhisperGPT/node_helper.js:213:23) at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
It seems that for some reason axios is sending the request to the localhost? I have setup whisper and mimic services in a different server
-
RE: MMM-Strava ID Unauthorized
@BerkSmash1984 did you ever fixed this issue?
I just had the same issue, and it turns out it was a permissions issue in the MagicMirror folder, I changed the permissions of the folder and re-authorized, it’s now working.
Best regards
-
MMM-GConnect Challenges?
Hello,
Would be great to integrate Challenges portion of Garmin Connect into this module, so it can be displayed in the mirror. Anyone with a suggestion on how to achieve this?
Thanks!
-
RE: First Magic Mirror
Thanks, I know I couldn’t get the monitor to be less bright, so depending on the angle and the distance you can see shining through
-
First Magic Mirror
After almost year with a two way mirror mounted on my wall I decided to give it a try and setup my first mirror, there’s still the sensation that I could get a better quality monitor (open to suggestions), since the one I got can see through the mirror
-
RE: Mirror not showing MMM-doomsDay module
This one worked!! thanks, I’ve submitted my time zone in your other post
-
RE: Mirror not showing MMM-doomsDay module
I tried that one as well and it’s not showing, I this it’s a problem with the remote control
-
Mirror not showing MMM-doomsDay module
Hello, I just added MMM-doomsDay module in my mirror, however I don’t get to show it, I’ve inserted the following code in my config.js file:
{ module: 'MMM-doomsDay', position: 'top_center', config:{ doomsDay: "2019-12-08 24:00:00", toWhat: "Test Countdown", } },
I am also using MMM-Remote-Control, and doomsday doesn’t show in the remote url, any idea?
Best regards,