Skip to content

Instantly share code, notes, and snippets.

@arshbot
Last active August 11, 2023 18:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arshbot/4f877e7cc7b7ec15a72e6454a103e20e to your computer and use it in GitHub Desktop.
Save arshbot/4f877e7cc7b7ec15a72e6454a103e20e to your computer and use it in GitHub Desktop.
Surge error copy
Format:
<ERROR_CODE>
<Simple explanation of what went wrong>
- <Fix 1>
- <Fix 2>
- <Fix 3>
"UNKNOWN"
"NO_DETAIL"
"ONION_DECODE"
Indicates that the node could not decode the failure reason provided for a failed payment.
"LINK_NOT_ELIGIBLE"
Indicates that a routing attempt was made over a link that is not eligible for routing.
"ON_CHAIN_TIMEOUT"
Indicates that somewhere after the first hop an error occured within a channel that had to remediate onchain. After remediation, the payment chain was canceled and returned back with this error. No funds should have moved.
- Retry with a different path. This error should not happen multiple times as long as a different path is taken.
"HTLC_EXCEEDS_MAX"
We attempted to route an amount that was higher than what the policy of some channel allowed.
- Retry with a different path. If you only have a handful of channels, opening more channels will help.
- Tr
"INSUFFICIENT_BALANCE"
"INCOMPLETE_FORWARD"
"HTLC_ADD_FAILED"
"FORWARDS_DISABLED"
"INVOICE_CANCELED"
"INVOICE_UNDERPAID"
"RESERVED"
"INCORRECT_OR_UNKNOWN_PAYMENT_DETAILS"
"INCORRECT_PAYMENT_AMOUNT"
"FINAL_INCORRECT_CLTV_EXPIRY"
"FINAL_INCORRECT_HTLC_AMOUNT"
"FINAL_EXPIRY_TOO_SOON"
"INVALID_REALM"
"EXPIRY_TOO_SOON"
"INVALID_ONION_VERSION"
"INVALID_ONION_HMAC"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment