dashevo / dapi

DEPRECATED A decentralized API for the Dash network
MIT License
17 stars 11 forks source link

subscribeToTransactionsWithProofs doesn't work with Dash Core v0.14.x #227

Closed thephez closed 4 years ago

thephez commented 4 years ago

This gRPC endpoint relies on Dash Core's germerkleblocks RPC, which won't be introduced until Dash Core 0.15 is released. That makes this endpoint unusable on Evonet as long as it is continues to run on Dash Core v0.14.x.

The obscure error message returned is lacking sufficient detail to understand what is going on without looking into the DAPI logs:

ERROR:
  Code: Internal
  Message: Internal error

The DAPI logs show the following which led me to the culprit (https://github.com/dashevo/dapi/blob/v0.9-dev/lib/externalApis/dashcore/rpc.js#L189-L204.):

DashCoreRpcError: Method not found
     at /usr/src/app/lib/externalApis/dashcore/rpc.js:199:14
     at newCallback (/node_modules/@dashevo/dashd-rpc/lib/index.js:51:16)
     at IncomingMessage.<anonymous> (/node_modules/@dashevo/dashd-rpc/lib/index.js:125:13)
     at IncomingMessage.emit (events.js:215:7)
     at endReadableNT (_stream_readable.js:1184:12)
     at processTicksAndRejections (internal/process/task_queues.js:80:21)

Documenting this in case anyone else encounters the issue and ends up here.

thephez commented 4 years ago

The Dash Core v0.15.0 dashpay/dashd image is now available.

shumkov commented 4 years ago

Thank you!