twelvecash
twelvecash copied to clipboard
Incorrect domain in payload
Previously, I was able to create bip353s with our staging domain as defined in env file. In my .env.local I have
DOMAINS={"12cash.dev": "123...xyz"}
However, the payload comes out likethis. Notice it's using primary domain instead of staging domain.
{"lno":"lno1...xyz","sp":"","onChain":"","label":"","lnurl":"","domain":"twelve.cash"}
Then response back is of course an error:
{
"error": {
"message": "Invalid request",
"errors": [
{
"received": "twelve.cash",
"code": "invalid_enum_value",
"options": [
"12cash.dev"
],
"path": [
"domain"
],
"message": "Invalid enum value. Expected '12cash.dev', received 'twelve.cash'"
}
]
}
}
I am pretty sue this got fixed when you were working on the auth and paid invoices stuff @chdwlch. But I think we might have the staging domain hardcoded in a few places, so we should pay attention to that.
I think this one is done, so I am closing this out. But will re-open if we observe the behavior again.