2
0
Derivar 0

Greenlock Express expects notify method to return promise #37

aberta(s)
2020-12-14 09:45:50 +00:00 aberta(s) por Ghost · 0 comentários
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) { ```
Inicie a sessão para participar neste diálogo.
Sem rótulo
Sem etapa
Sem encarregados
1 Participantes
Notificações
Data de vencimento
A data de vencimento é inválida ou está fora do intervalo permitido. Por favor, use o formato 'aaaa-mm-dd'.

Sem data de vencimento definida.

Dependências

Não estão definidas dependências.

Referência: root/greenlock.js#37
Nenhuma descrição fornecida.