-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: 2 UNKNOWN: Stream removed #49
Comments
Sorry for the delay, @Janaka-Steph. I'm attempting to reproduce now. If I can, I'd be more than happy to add a couple grpc args to fix the issue. Will update soon. |
I can't reproduce against LND |
To update lnrpc to |
By the way, my app is https://github.com/bitcoin-studio/LightningNespressoUI |
@Janaka-Steph Nope, you'll just need to update the version in your package.json.
|
Hello! So I have updated lnrpc to v0.7.1-beta. I still have the error in prod on digital ocean, but can't reproduce on local.. So maybe there is something else than lnrpc. |
I think this error come from |
By pinging LND every 5 minutes (with GetInfo) I get rid of the errors |
Hi Janaka-Steph, Did you get anywhere with this error? Was it indeed coming from grpc? J |
Hello @jake-unl, No I have never been able to fix it and I still don't know the cause. |
This is because the proxy or gRPC server is expecting traffic over TLS/SSL btw @jake-unl @Janaka-Steph |
Oh wow, this issue caused me so much trouble, thank you @parkergordonio ! |
Hello,
Version used: 0.6.0-beta.3
I have an issue with SubscribeInvoices. After 10 to 15 minutes, the connection ends with
Error: 2 UNKNOWN: Stream removed
.I found a similar issue here grpc/grpc-node#708
Someone on the LND slack has suggested to increase connection_idle, connection_age and the keepalive settings for the grpc channel.
The parameters should be added here https://github.com/RadarTech/lnrpc/blob/master/lib/lightning.js#L49
The grpc documentation: https://grpc.github.io/grpc/cpp/group__grpc__arg__keys.html
Currently I get around the issue with a setInterval monitoring and retrying connection upon error. But I would be interested to have your opinion about the issue and suggested fix.
Maybe allowing the end-user of lnrpc to set those parameters in the createLnRpc options object would be nice. What do you think?
Thank you
The text was updated successfully, but these errors were encountered: