Similarly to #1291, descriptions that are JSON encoded as numbers are rejected with the error message description '...' not a string. If the number is encoded as a quoted string, the invoice is accepted.
There are two possible related fixes here:
-
Change lightning-cli invoice to always escape the description as a string. Other client libraries/utilities will have to make sure to do that as well.
-
Always cast the description to a string when processing it.
Similarly to #1291, descriptions that are JSON encoded as numbers are rejected with the error message
description '...' not a string. If the number is encoded as a quoted string, the invoice is accepted.There are two possible related fixes here:
Change
lightning-cli invoiceto always escape the description as a string. Other client libraries/utilities will have to make sure to do that as well.Always cast the description to a string when processing it.