question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unexpected and unexplainable error

See original GitHub issue

First of all: sendinvoiceless is a really cool and useful feature that I’ve implemented in my lightning game

I run 2 nodes like this: myshtery <-> Bitkoins.nl <-> 7 other channels

Myshtery is only connect to Bitkoins.nl. I have paid “Ship of Theseus” via Bitkoins.nl a few day ago 1000 satoshi with sendinvioiceless and it went ok over 4 hops and a small fee.

I had to pay “Ship of Theseus” again today but it didn’t work while it’s a very well connected node and it worked before. Error message:

error: {'message': 'Sending failed'}\",)"

I tried increasing the fee but nothing worked. I tested paying another node ID with Bitkoins.nl and that went fine.

I then decided to try to pay with myshtery but since myshtery is only connected to Bitkoins.nl it should have made it harder not easier to pay. However, the payment went smooth (via Bitkoins.nl obviously) over 6 hops and a small fee. After that I tried to pay again via Bitkoins.nl but it didn’t work. Restarted Bitkoins.nl but that also didn’t help.

What on Earth could cause this situation?

c-lightning: “v0.8.0-1-gb14b2b0”

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
ghostcommented, Jan 14, 2020

@darosior I’ve set cltv-final to 20 in .lightning/config and I also see that value with lightning-cli listconfigs and it worked! I got:

"1000000 msat delivered with 1010 msat fee over 7 hops"

Thanks both of you for all the help!

Closing this issue.

1reaction
jarretcommented, Jan 14, 2020

I was having problems similar to what was described using circular payments borrowing logic from sendinvoiceless.py on a different project that traced back to an issue with the cltv-final setting.

By default, C-Lightning will only accept 10 blocks as the final hop cltv for the route back to oneself. sendinvoiceless.py checks that boot arg and uses that as the final routing hop cltv. However, if a block arrives during the operation (which can span a couple seconds to execute, depending), the final hop on the circular route back to itself will get rejected and the payment will fail.

After padding that cltv-final value on the route construction (the equivalent of setup_routing_fees() in sendinvoiceless.py) by 3 blocks, I no longer had the same intermittent failures. It looks like the script has an option to set that value for sendinvoiceless.py which can be greater than the default cltv-final boot arg.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unexpected and unexplained error during Post | DevExpress Support
I am creating my event dynamically: fCalendarEvent := schedStorage.CreateEvent(); fCalendarEvent.BeginEditing(); fCalendarEvent.Start := EventStart;
Read more >
Unexplained error: "Unexpected Token after end of Markup ...
The problem is the StringFormat value -- WPF can tolerate it not being wrapped in single-quotes, but apparently Silverlight cannot. Changing this:
Read more >
Error models and objective functions - Professor Nick Holford
RUV can be thought of as random and unexplained variability. Random error is always present and is unpredictable. It can be increased by...
Read more >
Unexplained Windows or software behavior may be caused ...
Describes behavior that may occur if your computer has deceptive software that is installed and running, and describes steps that you can take...
Read more >
HTTP 500 Internal Server Error: What It Means & How to Fix It
An HTTP 500 internal server error is a general error message. It covers unexpected issues that don't fit into existing error codes. HTTP...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found