GithubHelp home page GithubHelp logo

Comments (7)

alexbosworth avatar alexbosworth commented on June 12, 2024

what are you specifying for the cert, can you share any code?

from ln-service.

saravanan7mani avatar saravanan7mani commented on June 12, 2024

const {lnd} = lnService.authenticatedLndGrpc({
cert: "base64 of tls file downloaded from voltage",
macaroon: "base64 of admin.macaroon downloaded from voltage",
socket: "grpc endpoint uri of voltage node"
});

Please note, voltage's TLS cert file is actually CA provided.

from ln-service.

alexbosworth avatar alexbosworth commented on June 12, 2024

OK: try omitting the cert

from ln-service.

saravanan7mani avatar saravanan7mani commented on June 12, 2024

Did that already. Received the below error.

D 2022-02-20T03:57:39.203Z | call_stream | [0] HTTP/2 stream closed with code 0
D 2022-02-20T03:57:39.203Z | call_stream | [0] ended with status: code=13 details="Received RST_STREAM with code 0"
D 2022-02-20T03:57:39.203Z | subchannel_refcount | (12) ### callRefcount 4 -> 3
[
503,
'FailedToRetrieveNodeDetails',
{
err: Error: 13 INTERNAL: Received RST_STREAM with code 0
at Object.callErrorFromStatus (/Users/samani2/projects/btc/test/node_modules/ln-service/node_modules/@grpc/grpc-js/build/src/call.js:31:26)
at Object.onReceiveStatus (/Users/samani2/projects/btc/test/node_modules/ln-service/node_modules/@grpc/grpc-js/build/src/client.js:180:52)
at Object.onReceiveStatus (/Users/samani2/projects/btc/test/node_modules/ln-service/node_modules/@grpc/grpc-js/build/src/client-interceptors.js:336:141)
at Object.onReceiveStatus (/Users/samani2/projects/btc/test/node_modules/ln-service/node_modules/@grpc/grpc-js/build/src/client-interceptors.js:299:181)
at /Users/samani2/projects/btc/test/node_modules/ln-service/node_modules/@grpc/grpc-js/build/src/call-stream.js:160:78
at processTicksAndRejections (node:internal/process/task_queues:78:11) {
code: 13,
details: 'Received RST_STREAM with code 0',
metadata: [Metadata]
}
}
]

from ln-service.

alexbosworth avatar alexbosworth commented on June 12, 2024

OK I think this error comes from the server side so something is going on there, maybe you could ask voltageio for some advice?

Another thing to try is use an existing script like https://github.com/alexbosworth/balanceofsatoshis which uses ln-service: https://docs.voltage.cloud/balance-of-satoshis-guides/balance-of-satoshis - if that works then you could see how it is calling into the methods

from ln-service.

saravanan7mani avatar saravanan7mani commented on June 12, 2024

Thanks. I will try those and update.

from ln-service.

saravanan7mani avatar saravanan7mani commented on June 12, 2024

Removal of cert property worked.

from ln-service.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.