2
0
Fork 0

Greenlock Express expects notify method to return promise #37

Offen
2020-12-14 09:45:50 +00:00 geöffnet von Ghost · 0 Kommentare
TypeError: Cannot read property 'then' of undefined
    at rpc (/srv/clearflask-connect/node_modules/@root/greenlock-express/master.js:137:17)
    at Worker.handleMessage (/srv/clearflask-connect/node_modules/@root/greenlock-express/master.js:156:13)
    at Worker.emit (events.js:327:22)
    at ChildProcess.<anonymous> (internal/cluster/worker.js:32:12)
    at ChildProcess.emit (events.js:315:20)
    at emit (internal/child_process.js:903:12)
    at processTicksAndRejections (internal/process/task_queues.js:81:21)

The msg that caused this:

{
  _id: 'greenlock:6458316115992584',
  _funcname: 'notify',
  _input: 'servername_unknown'
}

Proposed fix:

Change greenlock.js

greenlock.notify = greenlock._notify = function(ev, params) {

To:

greenlock.notify = greenlock._notify = async function(ev, params) {
``` TypeError: Cannot read property 'then' of undefined     at rpc (/srv/clearflask-connect/node_modules/@root/greenlock-express/master.js:137:17)     at Worker.handleMessage (/srv/clearflask-connect/node_modules/@root/greenlock-express/master.js:156:13)     at Worker.emit (events.js:327:22)     at ChildProcess.<anonymous> (internal/cluster/worker.js:32:12)     at ChildProcess.emit (events.js:315:20)     at emit (internal/child_process.js:903:12)     at processTicksAndRejections (internal/process/task_queues.js:81:21) ``` The `msg` that caused this: ``` {   _id: 'greenlock:6458316115992584',   _funcname: 'notify',   _input: 'servername_unknown' } ``` Proposed fix: Change greenlock.js ``` greenlock.notify = greenlock._notify = function(ev, params) { ``` To: ``` greenlock.notify = greenlock._notify = async function(ev, params) { ```
Anmelden, um an der Diskussion teilzunehmen.
Kein Label
Kein Meilenstein
Niemand zuständig
1 Beteiligte
Nachrichten
Fällig am
Das Fälligkeitsdatum ist ungültig oder außerhalb des zulässigen Bereichs. Bitte verwende das Format „jjjj-mm-tt“.

Kein Fälligkeitsdatum gesetzt.

Abhängigkeiten

Keine Abhängigkeiten gesetzt.

Referenz: root/greenlock.js#37
Keine Beschreibung angegeben.