-
Notifications
You must be signed in to change notification settings - Fork 906
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
runes: pname restrictions fail if the parameter has an underscore #5542
Comments
Is this still a valid issue? |
Yes, this is still a valid issue. |
HI @jb55, 1- Check Parameter Name: Ensure that pnameamount_msat is a valid parameter name for the invoice method in lightning-cli. If it's not a recognized parameter, the command will fail. 2- Syntax Check: Ensure that the syntax of the restrictions array is correct. In some cases, the way arguments are passed, especially in a shell environment, can affect how they are interpreted. 3 -Documentation Reference: Consult the documentation for lightning-cli and commando-rune to ensure that your syntax and usage of the parameters align with the documented method. 4- Experiment with Different Formats: Sometimes, trying different formats can help identify the issue. For example, you could try simplifying the command to see if it works with just one restriction, then add the second one. Try modifying the command like this: 2nd: [ if the Note: use bash terminal |
On Wed, Jan 17, 2024 at 05:30:10PM -0800, Ali Raza wrote:
HI @jb55,
1- **Check Parameter Name:** Ensure that pnameamount_msat is a valid parameter name for the invoice method in lightning-cli. If it's not a recognized parameter, the command will fail.
2- **Syntax Check:** Ensure that the syntax of the restrictions array is correct. In some cases, the way arguments are passed, especially in a shell environment, can affect how they are interpreted.
3 -**Documentation Reference:** Consult the documentation for lightning-cli and commando-rune to ensure that your syntax and usage of the parameters align with the documented method.
4- **Experiment with Different Formats:** Sometimes, trying different formats can help identify the issue. For example, you could try simplifying the command to see if it works with just one restriction, then add the second one.
I don't think ChatGPT is gonna help here.
|
@jb55 Not sure if this issue auto-fixed in the meantime or the command was malformed from the starting. But the command is working with version 23.11. Note that the restrictions parameter expects arrays of restrictions.
Please feel free to comment here if it still doesn't work for you. Closing the issue for now. |
nice, thanks! |
@jb55 Reopening the issue due to:
Till it is addressed, pname restrictions can be used after manually removing |
Closing with PR #7124 |
The text was updated successfully, but these errors were encountered: