Closed juscamarena closed 2 years ago
Thanks for reporting this, I'll look into it.
I've removed the metadata field now so it'll work with us, but I think other services use it, not sure.
There's no issue on Phoenix's side at least in the example you gave: the full metadata provided by the bitrefill.me
service was [["text/identifier","max@bitrefill.me"]]
, which violates the LUD-06 specs (because it does not contain the mandatory "text/plain"
metadata). Phoenix will also error if the metadata array is empty, that's due to that same spec constraint.
The log of Phoenix you attached is not very explicit and a bit scary, but it actually means that "text/plain" is missing.
You can add the text/identifier
metadata field back and it should work as long as the text/plain
field is there. The identifier field will just be ignored (there will be a warning in the logs), but the app won't error. Please reopen this issue if that's not the case.
text/identifier is an optional metadata field used with a lightning address.
It seems Phoenix errors if there are any metadata types that are not known to Phoenix, it also errors if nothing is set and it's an empty array.
Here's the documentation.
https://github.com/fiatjaf/lnurl-rfc/blob/luds/16.md
Here's the error logs from phoenix: