Nuevo Ganache (1.1.0-beta.0) provoca una respuesta JSON RPC no válida

Hola, estoy ejecutando una prueba en la que espero que se produzca una transacción. En lugar de devolver correctamente un recibo con un estado de 0, o arrojar un reverterror, arroja este error de respuesta JSON RPC no válido.

Ejemplo:

try {
    // some generic transaction with a contract that should fail via revert or require.
    await promise;
} catch (error) {
    const revertEvent = error.message.search('revert') >= 0;
    assert(revertEvent, 'expected revert');
}

y obtengo el stacktrace:

Error: Invalid JSON RPC response: {"id":202,"jsonrpc":"2.0"}
at Object.InvalidResponse (/usr/local/lib/node_modules/truffle/build/cli.bundled.js:41483:16)
at /usr/local/lib/node_modules/truffle/build/cli.bundled.js:330353:36
at /usr/local/lib/node_modules/truffle/build/cli.bundled.js:326008:9
at XMLHttpRequest.request.onreadystatechange (/usr/local/lib/node_modules/truffle/build/cli.bundled.js:329052:7)
at XMLHttpRequestEventTarget.dispatchEvent (/usr/local/lib/node_modules/truffle/build/cli.bundled.js:176427:18)
at XMLHttpRequest._setReadyState (/usr/local/lib/node_modules/truffle/build/cli.bundled.js:176717:12)
at XMLHttpRequest._onHttpResponseEnd (/usr/local/lib/node_modules/truffle/build/cli.bundled.js:176872:12)
at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/truffle/build/cli.bundled.js:176832:24)
at emitNone (events.js:110:20)
at IncomingMessage.emit (events.js:207:7)
at endReadableNT (_stream_readable.js:1047:12)
at _combinedTickCallback (internal/process/next_tick.js:102:11)
at process._tickDomainCallback (internal/process/next_tick.js:198:9)

Respuestas (1)

Mantenedor de ganache aquí. Este es un error conocido en la versión beta. Consulte https://github.com/trufflesuite/ganache-cli/issues/471