alexbosworth / ln-service

Node.js interface to LND
MIT License
318 stars 61 forks source link

grpc errors on latest version #134

Closed apotdevin closed 3 years ago

apotdevin commented 3 years ago

Updated to the latest version and i'm getting these errors:

 503,
  'FailedToRetrieveClosedChannels',
  {
    err: Error: 13 INTERNAL: Received RST_STREAM with code 2 (Internal server error)
503,
  'GetForwardingHistoryError',
  {
    err: Error: 13 INTERNAL: Received RST_STREAM with code 2 (Internal server error)

Haven't checked all the methods but might be happening with others as well.

Might it be related to the latest grpc-js change? It's a node running version 0.11.0

alexbosworth commented 3 years ago

Does it happen on node 0.12.0?

apotdevin commented 3 years ago

Unfortunately don't have any node running that version right now but can let you know when I do.

Still this would mean the version 0.11.0 is unsupported with this release?

alexbosworth commented 3 years ago

Unfortunately don't have any node running that version right now but can let you know when I do.

Still this would mean the version 0.11.0 is unsupported with this release?

In theory grpc-js supports 0.10.0 and above, and grpc is deprecated, so that would set the lower bar

apotdevin commented 3 years ago

Had to revert to a previous version :( was getting this error randomly from all the calls

alexbosworth commented 3 years ago

Had to revert to a previous version :( was getting this error randomly from all the calls

Not too surprised that there are random new errors, I'll try to see what can be done. I also see this error on node v12.19.0 but rarely

alexbosworth commented 3 years ago

You could also try using an older https://github.com/alexbosworth/lightning version to instantiate the lnd object, but using the latest ln-service methods

apotdevin commented 3 years ago

Will give it a try. Will also try that version, currently I'm on node v12.14.0 and its to many errors

alexbosworth commented 3 years ago

Will give it a try. Will also try that version, currently I'm on node v12.14.0 and its to many errors

It might not work, I found that mixing and matching grpcs caused mysterious problems

apotdevin commented 3 years ago

Updating to node version 14 helped with all the errors, closing this