Read the statement by Michael Teeuw here.
MMM-GooglePhotos
-
@kykzzang said in MMM-GooglePhotos:
[GPHOTOS:CORE] Error: Client network socket disconnected before secure TLS connection was established
It means, your network is not stable.
-
@Sean I’m thinking it might be something on Google’s end. I’m having the same issue.
[2020-04-23 18:54:25.134] [LOG] 2020-04-23T18:54:25 [GPHOTOS:CORE] Error: Client network socket disconnected before secure TLS connection was established (/home/pi/MagicMirror/modules/MMM-GooglePhotos/GPhotos.js:124 GPhotos.log)
Is it possible to handle this error at all? Everything works fine for hours, then this error. Then it never recovers to try again but just stays on the last photo displayed.
-
@gonzonia
I’ll add some routine for graceful logging and retry in a few days. However, network stability issue couldn’t be solved by this module. -
@gonzonia
For staying the last photo displayed, It is not so easy as our hope.
Because, the URL of GooglePhotos has short term life - 1 hour. Without downloading and storing, the image will be expired. Anyway I’ll consider how to solve this problem. -
@Sean
Hi from npm start dev I have only this error
[ERROR] (node:1472) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead. -
Hi,
I’m using this module. Thank you for developing it. Everything seems to work normal except that it’s not scanning for new added or deleted photo from the albums.
I’m using the node serveronly command to start the MagicMirror2 without no errors reporting. I couldn’t figured with npm start dev. I have activated the debug, and only once it’s scanning the album.Is this config parameter still working:
scanInterval: 1000*60*10,
?
As for me it isn’t and I saw it’s not described in readme doc. Or is there any other way to let the module scan automatically for new added photos?
I only found the way of refreshing the browsing page, which works but it’s not what I need.Thanks!
This is my config:
{ module: "MMM-GooglePhotos", position: "fullscreen_below", config: { albums: ["TESTARE"], updateInterval: 100 * 60, // minimum 10 seconds. scanInterval: 1000*60, //10 minutes sort: "new", // "old", "random" uploadAlbum: null, // Only album created by `create_uploadable_album.js`. condition: { fromDate: null, // Or "2018-03", RFC ... format available toDate: null, // Or "2019-12-25", minWidth: null, // Or 400 maxWidth: null, // Or 8000 minHeight: null, // Or 400 maxHeight: null, // Or 8000 minWHRatio: null, maxWHRatio: null, // WHRatio = Width/Height ratio ( ==1 : Squared Photo, < 1 : Portraited Photo, > 1 : Landscaped Photo) }, showWidth: 1080, // These values will be used for quality of downloaded photos to show. real size to show in your MagicMirror region is recommended. showHeight: 1920, //timeFormat: "YYYY/MM/DD HH:mm", // Or `relative` can be used. } }
-
@dumitrudany
Not possible immediately as you wish. There is no way to detect whether you add/modify photos or not. Maybe frequent scanning would get a similar result, but it will consume and waste too many API quota. I can’t recommend it at all. -
@Sean Thanks. I think if you can gracefully handle the bad connection (no matter where it’s from) and reconnect once the connection works again, the image being stuck won’t be an issue. Right now once the connection breaks the module can’t recover.
-
@Sean I’ve been looking into this, because I’m really don’t think it’s my network (no other module has this issue and there’s no similar problems anywhere else on the network). The first error doesn’t seem to be fatal, but the second is.
These are the errors I’m seeing in my Out.log
[2020-04-27 17:33:15.365] [LOG] 2020-04-27T17:33:15 <log> [GPHOTOS:CORE] Error: socket hang up (/home/pi/MagicMirror/modules/MMM-GooglePhotos/GPhotos.js:124 GPhotos.log)
and
[2020-04-27 18:51:15.155] [LOG] 2020-04-27T18:51:15 <log> [GPHOTOS:CORE] Error: Client network socket disconnected before secure TLS connectionwas established (/home/pi/MagicMirror/modules/MMM-GooglePhotos/GPhotos.js:124 GPhotos.log)
I came across this issue on gitub related to Google APIs. https://github.com/googleapis/nodejs-bigquery/issues/624
Not sure it’s related.In Error.log I see
2020-04-27 17:33:15.356] [ERROR] [31m[1m2020-04-27T17:33:15 <error> Error: socket hang up[22m[39m [31m[1m at connResetException (internal/errors.js:559:14)[22m[39m [31m[1m at TLSSocket.socketOnEnd (_http_client.js:436:23)[22m[39m [31m[1m at TLSSocket.emit (events.js:205:15)[22m[39m [31m[1m at endReadableNT (_stream_readable.js:1154:12)[22m[39m [31m[1m at processTicksAndRejections (internal/process/task_queues.js:84:9) {[22m[39m [31m[1m code: 'ECONNRESET'[22m[39m [31m[1m} (/home/pi/MagicMirror/js/app.js:40 process.<anonymous>)[22m[39m [2020-04-27 17:33:15.361] [ERROR] [31m[1m2020-04-27T17:33:15 <error> Error: socket hang up[22m[39m [31m[1m at connResetException (internal/errors.js:559:14)[22m[39m [31m[1m at TLSSocket.socketOnEnd (_http_client.js:436:23)[22m[39m [31m[1m at TLSSocket.emit (events.js:205:15)[22m[39m [31m[1m at endReadableNT (_stream_readable.js:1154:12)[22m[39m [31m[1m at processTicksAndRejections (internal/process/task_queues.js:84:9) {[22m[39m [31m[1m code: 'ECONNRESET'[22m[39m [31m[1m} (/home/pi/MagicMirror/js/app.js:40 process.<anonymous>)[22m[39m [2020-04-27 17:33:15.367] [ERROR] [31m[1m2020-04-27T17:33:15 <error> (node:17589) UnhandledPromiseRejectionWarning: Error: socket hang up[22m[39m [31m[1m at connResetException (internal/errors.js:559:14)[22m[39m [31m[1m at TLSSocket.socketOnEnd (_http_client.js:436:23)[22m[39m [31m[1m at TLSSocket.emit (events.js:205:15)[22m[39m [31m[1m at endReadableNT (_stream_readable.js:1154:12)[22m[39m [31m[1m at processTicksAndRejections (internal/process/task_queues.js:84:9) (/home/pi/MagicMirror/internal/process/warning.js:27 writeOut)[22m[39m [2020-04-27 17:33:15.368] [ERROR] [31m[1m2020-04-27T17:33:15 <error> (node:17589) UnhandledPromiseRejectionWarning: Error: socket hang up[22m[39m [31m[1m at connResetException (internal/errors.js:559:14)[22m[39m [31m[1m at TLSSocket.socketOnEnd (_http_client.js:436:23)[22m[39m [31m[1m at TLSSocket.emit (events.js:205:15)[22m[39m [31m[1m at endReadableNT (_stream_readable.js:1154:12)[22m[39m [31m[1m at processTicksAndRejections (internal/process/task_queues.js:84:9) (/home/pi/MagicMirror/internal/process/warning.js:27 writeOut)[22m[39m [2020-04-27 17:33:15.369] [ERROR] [31m[1m2020-04-27T17:33:15 <error> (node:17589) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2) (/home/pi/MagicMirror/internal/process/warning.js:27 writeOut)[22m[39m [2020-04-27 17:33:15.369] [ERROR] [31m[1m2020-04-27T17:33:15 <error> (node:17589) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2) (/home/pi/MagicMirror/internal/process/warning.js:27 writeOut)[22m[39m [2020-04-27 17:33:15.370] [ERROR] [31m[1m2020-04-27T17:33:15 <error> (node:17589) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. (/home/pi/MagicMirror/internal/process/warning.js:27 writeOut)[22m[39m [2020-04-27 17:33:15.371] [ERROR] [31m[1m2020-04-27T17:33:15 <error> (node:17589) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. (/home/pi/MagicMirror/internal/process/warning.js:27 writeOut)[22m[39m
and
[2020-04-27 18:51:15.161] [ERROR] [31m[1m2020-04-27T18:51:15 <error> (node:17589) UnhandledPromiseRejectionWarning: Error: Client network socket disconnected before secure TLS connection was established[22m[39m [31m[1m at connResetException (internal/errors.js:559:14)[22m[39m [31m[1m at TLSSocket.onConnectEnd (_tls_wrap.js:1355:19)[22m[39m [31m[1m at Object.onceWrapper (events.js:288:20)[22m[39m [31m[1m at TLSSocket.emit (events.js:205:15)[22m[39m [31m[1m at endReadableNT (_stream_readable.js:1154:12)[22m[39m [31m[1m at processTicksAndRejections (internal/process/task_queues.js:84:9) (/home/pi/MagicMirror/internal/process/warning.js:27 writeOut)[22m[39m [2020-04-27 18:51:15.164] [ERROR] [31m[1m2020-04-27T18:51:15 <error> (node:17589) UnhandledPromiseRejectionWarning: Error: Client network socket disconnected before secure TLS connection was established[22m[39m [31m[1m at connResetException (internal/errors.js:559:14)[22m[39m [31m[1m at TLSSocket.onConnectEnd (_tls_wrap.js:1355:19)[22m[39m [31m[1m at Object.onceWrapper (events.js:288:20)[22m[39m [31m[1m at TLSSocket.emit (events.js:205:15)[22m[39m [31m[1m at endReadableNT (_stream_readable.js:1154:12)[22m[39m [31m[1m at processTicksAndRejections (internal/process/task_queues.js:84:9) (/home/pi/MagicMirror/internal/process/warning.js:27 writeOut)[22m[39m [2020-04-27 18:51:15.166] [ERROR] [31m[1m2020-04-27T18:51:15 <error> (node:17589) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 4) (/home/pi/MagicMirror/internal/process/warning.js:27 writeOut)[22m[39m [2020-04-27 18:51:15.168] [ERROR] [31m[1m2020-04-27T18:51:15 <error> (node:17589) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 4) (/home/pi/MagicMirror/internal/process/warning.js:27 writeOut)[22m[39m
-
@zolabus - That is merely a warning, not an error. That won’t be the source of the problem.