Skip to content

Instantly share code, notes, and snippets.

@mrfelton
Created April 16, 2020 17:01
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save mrfelton/7852cefab09edd713a69e147ce91c049 to your computer and use it in GitHub Desktop.
grpc-js-no-tor
macbook-pro:node-lnd-grpc tom$ GRPC_TRACE=all GRPC_VERBOSITY=DEBUG DEBUG=lnrpc* npx babel-tape-runner test/grpc.test.js | npx tap-spec
connect (paths)
lnrpc:grpc Initializing LndGrpc with config: { host: 'testnet4-lnd.zaphq.io:10009', cert: '/Users/tom/workspace/node-lnd-grpc/test/fixtures/testnet4/tls.cert', macaroon: '/Users/tom/workspace/node-lnd-grpc/test/fixtures/testnet4/readonly.macaroon' } +0ms
lnrpc:grpc Connecting to lnd gRPC service +8ms
lnrpc:grpc Attempting to determine wallet state +75ms
lnrpc:service:WalletUnlocker Connecting to WalletUnlocker gRPC service +0ms
lnrpc:service:WalletUnlocker Establishing gRPC connection to WalletUnlocker with proto file /Users/tom/workspace/node-lnd-grpc/proto/0.9.0-beta/lnrpc/rpc.proto +2ms
2020-04-16T17:01:10.057Z | resolving_load_balancer | testnet4-lnd.zaphq.io:10009 IDLE -> IDLE
2020-04-16T17:01:10.057Z | connectivity_state | testnet4-lnd.zaphq.io:10009 IDLE -> IDLE
2020-04-16T17:01:10.057Z | dns_resolver | Resolver constructed for target testnet4-lnd.zaphq.io:10009
2020-04-16T17:01:10.058Z | dns_resolver | Resolution update requested for target testnet4-lnd.zaphq.io:10009
2020-04-16T17:01:10.058Z | resolving_load_balancer | testnet4-lnd.zaphq.io:10009 IDLE -> CONNECTING
2020-04-16T17:01:10.058Z | connectivity_state | testnet4-lnd.zaphq.io:10009 IDLE -> CONNECTING
2020-04-16T17:01:10.058Z | resolving_load_balancer | testnet4-lnd.zaphq.io:10009 CONNECTING -> CONNECTING
2020-04-16T17:01:10.059Z | connectivity_state | testnet4-lnd.zaphq.io:10009 CONNECTING -> CONNECTING
2020-04-16T17:01:10.059Z | dns_resolver | Resolved addresses for target testnet4-lnd.zaphq.io:10009: [34.73.104.166:10009]
2020-04-16T17:01:10.060Z | pick_first | IDLE -> IDLE
2020-04-16T17:01:10.060Z | resolving_load_balancer | testnet4-lnd.zaphq.io:10009 CONNECTING -> IDLE
2020-04-16T17:01:10.060Z | connectivity_state | testnet4-lnd.zaphq.io:10009 CONNECTING -> IDLE
2020-04-16T17:01:10.060Z | pick_first | Connect to address list 34.73.104.166:10009
2020-04-16T17:01:10.061Z | subchannel | 34.73.104.166:10009 refcount 0 -> 1
2020-04-16T17:01:10.061Z | subchannel | 34.73.104.166:10009 refcount 1 -> 2
2020-04-16T17:01:10.061Z | pick_first | Start connecting to subchannel with address 34.73.104.166:10009
2020-04-16T17:01:10.061Z | pick_first | IDLE -> CONNECTING
2020-04-16T17:01:10.061Z | resolving_load_balancer | testnet4-lnd.zaphq.io:10009 IDLE -> CONNECTING
2020-04-16T17:01:10.061Z | connectivity_state | testnet4-lnd.zaphq.io:10009 IDLE -> CONNECTING
2020-04-16T17:01:10.061Z | subchannel | 34.73.104.166:10009 IDLE -> CONNECTING
2020-04-16T17:01:10.061Z | pick_first | CONNECTING -> CONNECTING
2020-04-16T17:01:10.061Z | resolving_load_balancer | testnet4-lnd.zaphq.io:10009 CONNECTING -> CONNECTING
2020-04-16T17:01:10.061Z | connectivity_state | testnet4-lnd.zaphq.io:10009 CONNECTING -> CONNECTING
2020-04-16T17:01:10.343Z | subchannel | 34.73.104.166:10009 CONNECTING -> READY
2020-04-16T17:01:10.343Z | pick_first | Pick subchannel with address 34.73.104.166:10009
2020-04-16T17:01:10.343Z | pick_first | CONNECTING -> READY
2020-04-16T17:01:10.343Z | resolving_load_balancer | testnet4-lnd.zaphq.io:10009 CONNECTING -> READY
2020-04-16T17:01:10.343Z | connectivity_state | testnet4-lnd.zaphq.io:10009 CONNECTING -> READY
2020-04-16T17:01:10.343Z | dns_resolver | Resolution update requested for target testnet4-lnd.zaphq.io:10009
2020-04-16T17:01:10.343Z | dns_resolver | Resolution update requested for target testnet4-lnd.zaphq.io:10009
2020-04-16T17:01:10.344Z | subchannel | 34.73.104.166:10009 refcount 2 -> 3
2020-04-16T17:01:10.344Z | subchannel | 34.73.104.166:10009 refcount 3 -> 2
lnrpc:service:WalletUnlocker Connected to WalletUnlocker gRPC service +380ms
lnrpc:service:WalletUnlocker Calling WalletUnlocker.unlockWallet with payload: { payload: {}, options: {} } +0ms
2020-04-16T17:01:10.345Z | channel | testnet4-lnd.zaphq.io:10009 createCall [0] method="/lnrpc.WalletUnlocker/UnlockWallet", deadline=Infinity
2020-04-16T17:01:10.345Z | call_stream | [0] Sending metadata
2020-04-16T17:01:10.346Z | channel | Pick result: COMPLETE subchannel: 34.73.104.166:10009 status: undefined undefined
2020-04-16T17:01:10.347Z | call_stream | [0] write() called with message of length 0
2020-04-16T17:01:10.347Z | call_stream | [0] end() called
2020-04-16T17:01:10.348Z | subchannel | Starting stream with headers
grpc-accept-encoding: identity,deflate,gzip
accept-encoding: identity,gzip
:authority: testnet4-lnd.zaphq.io
user-agent: grpc-node-js/0.8.1
content-type: application/grpc
:method: POST
:path: /lnrpc.WalletUnlocker/UnlockWallet
te: trailers
2020-04-16T17:01:10.348Z | call_stream | [0] attachHttp2Stream from subchannel 34.73.104.166:10009
2020-04-16T17:01:10.348Z | subchannel | 34.73.104.166:10009 callRefcount 0 -> 1
2020-04-16T17:01:10.349Z | call_stream | [0] sending data chunk of length 5
2020-04-16T17:01:10.349Z | call_stream | [0] calling end() on HTTP/2 stream
2020-04-16T17:01:10.349Z | dns_resolver | Resolved addresses for target testnet4-lnd.zaphq.io:10009: [34.73.104.166:10009]
2020-04-16T17:01:10.349Z | pick_first | Connect to address list 34.73.104.166:10009
2020-04-16T17:01:10.350Z | subchannel | 34.73.104.166:10009 refcount 2 -> 3
2020-04-16T17:01:10.350Z | pick_first | Pick subchannel with address 34.73.104.166:10009
2020-04-16T17:01:10.350Z | subchannel | 34.73.104.166:10009 refcount 3 -> 2
2020-04-16T17:01:10.350Z | pick_first | READY -> READY
2020-04-16T17:01:10.350Z | resolving_load_balancer | testnet4-lnd.zaphq.io:10009 READY -> READY
2020-04-16T17:01:10.350Z | connectivity_state | testnet4-lnd.zaphq.io:10009 READY -> READY
2020-04-16T17:01:10.350Z | subchannel | 34.73.104.166:10009 refcount 2 -> 3
2020-04-16T17:01:10.350Z | subchannel | 34.73.104.166:10009 refcount 3 -> 2
2020-04-16T17:01:10.486Z | call_stream | [0] Received server headers:
:status: 200
content-type: application/grpc
grpc-status: 12
grpc-message: unknown service lnrpc.WalletUnlocker
2020-04-16T17:01:10.486Z | call_stream | [0] Received server trailers:
:status: 200
content-type: application/grpc
grpc-status: 12
grpc-message: unknown service lnrpc.WalletUnlocker
2020-04-16T17:01:10.487Z | call_stream | [0] received status code 12 from server
2020-04-16T17:01:10.487Z | call_stream | [0] received status details string "unknown service lnrpc.WalletUnlocker" from server
2020-04-16T17:01:10.487Z | call_stream | [0] ended with status: code=12 details="unknown service lnrpc.WalletUnlocker"
2020-04-16T17:01:10.488Z | subchannel | 34.73.104.166:10009 callRefcount 1 -> 0
lnrpc:grpc Determined wallet state as: WALLET_STATE_ACTIVE +526ms
lnrpc:grpc Disconnecting from lnd gRPC service +1ms
lnrpc:grpc Disconnecting from all gRPC services +0ms
lnrpc:service:WalletUnlocker Disconnecting from WalletUnlocker gRPC service +145ms
2020-04-16T17:01:10.489Z | subchannel | 34.73.104.166:10009 refcount 2 -> 1
2020-04-16T17:01:10.489Z | resolving_load_balancer | testnet4-lnd.zaphq.io:10009 READY -> SHUTDOWN
2020-04-16T17:01:10.489Z | connectivity_state | testnet4-lnd.zaphq.io:10009 READY -> SHUTDOWN
2020-04-16T17:01:10.489Z | connectivity_state | testnet4-lnd.zaphq.io:10009 SHUTDOWN -> SHUTDOWN
2020-04-16T17:01:10.489Z | subchannel | 34.73.104.166:10009 refcount 1 -> 0
2020-04-16T17:01:10.489Z | subchannel | 34.73.104.166:10009 READY -> TRANSIENT_FAILURE
lnrpc:service:WalletUnlocker Disconnected from WalletUnlocker gRPC service +1ms
lnrpc:grpc Disconnected from all gRPC services +1ms
lnrpc:grpc Disconnected from lnd gRPC service +0ms
✔ should connect
2020-04-16T17:01:10.491Z | call_stream | [0] HTTP/2 stream closed with code 8
total: 1
passing: 1
duration: 2.2s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment