Skip to content
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

unable to send, no routes provided (but route is there) #61

Closed
Koshy11 opened this issue May 28, 2019 · 3 comments
Closed

unable to send, no routes provided (but route is there) #61

Koshy11 opened this issue May 28, 2019 · 3 comments

Comments

@Koshy11
Copy link

Koshy11 commented May 28, 2019

Hello,

I have:

  • rebalance-lnd
  • LND: 0.6.1-beta

list of channels works... finding routes works... but when i try to pay the route i get the following error:

$ python rebalance.py -t 17 -a 1000
Sending 1,000 satoshis to rebalance to channel with ID 63xxxxxxxxxxxxxxxx
requesting 15 routes from lnd, please wait.
lnd returned 1 routes that will now be tested
Trying route #1
63xxxxxxxxxxxxxxxx -> 62xxxxxxxxxxxxxxxx -> 63xxxxxxxxxxxxxxxx
Traceback (most recent call last):
File "rebalance.py", line 223, in
main()
File "rebalance.py", line 62, in main
response = Logic(lnd, first_hop_channel_id, last_hop_channel, amount, channel_ratio, max_fee_factor).rebalance()
File "/usr/local/src/rebalance-lnd/logic.py", line 48, in rebalance
response = self.lnd.send_payment(payment_request, [route])
File "/usr/local/src/rebalance-lnd/lnd.py", line 98, in send_payment
return self.stub.SendToRouteSync(request)
File "/usr/lib64/python2.7/site-packages/grpc/_channel.py", line 565, in call
return _end_unary_response_blocking(state, call, False, None)
File "/usr/lib64/python2.7/site-packages/grpc/_channel.py", line 467, in _end_unary_response_blocking
raise _Rendezvous(state, None, None, deadline)
grpc._channel._Rendezvous: <_Rendezvous of RPC that terminated with:
status = StatusCode.UNKNOWN
details = "unable to send, no routes provided"
debug_error_string = "{"created":"@1559085040.643817147","description":"Error received from peer ipv4:127.0.0.1:10009","file":"src/core/lib/surface/call.cc","file_line":1046,"grpc_message":"unable to send, no routes provided","grpc_status":2}"

is this issue with LND or rebalance-lnd? any ideas?

@C-Otto
Copy link
Owner

C-Otto commented May 29, 2019

lnd complains "no routes provided", but according to the code exactly one route should have been forwarded to lnd. Could you add a debug line and try again?

lnd.py, at the top:
add import sys

At the bottom, change to add a debug statement:

def send_payment(self, payment_request, routes):
        payment_hash = payment_request.payment_hash
        request = ln.SendToRouteRequest()

        request.payment_hash_string = payment_hash
        request.routes.extend(routes)

        sys.stderr.write(repr(request)) # this line is added
        return self.stub.SendToRouteSync(request)

@mariodian
Copy link

I have the same issue both with rebalance-lnd and lndmanage as well. Seems this issue is related to LND?

@C-Otto
Copy link
Owner

C-Otto commented Jun 4, 2019

I think so, too. Please provide more information if rebalance-lnd is to blame :)

@C-Otto C-Otto closed this as completed Jun 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants