twelvecash icon indicating copy to clipboard operation
twelvecash copied to clipboard

Incorrect domain in payload

Open sbddesign opened this issue 1 year ago • 1 comments

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'"
            }
        ]
    }
}

sbddesign avatar Jul 19 '24 14:07 sbddesign

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.

sbddesign avatar Jul 25 '24 21:07 sbddesign

I think this one is done, so I am closing this out. But will re-open if we observe the behavior again.

sbddesign avatar Dec 13 '24 13:12 sbddesign