#sks

1 messages · Page 1 of 1 (latest)

dawn mirageBOT
oblique igloo
upbeat canopy
#

@digital knoll can you share the code you're using please?

#

Make sure you're specifying the correct Firebase region for your project when invoking the function. That's often the issue here.

digital knoll
#

let me check

upbeat canopy
digital knoll
#

I am looking at this.

upbeat canopy
#

If you can share your code that invokes the Firebase function then I can help debug

digital knoll
#

Yes it works now.

upbeat canopy
#

Was it the region?

digital knoll
#
const functions = getFunctions(getApp(), "asia-south1");
    const fn = httpsCallable(functions, 'ext-firestore-stripe-payments-createPortalLink');
    const { data } = await fn({
        returnUrl: window.location.origin,
    });
    window.location.assign(data.url);

digital knoll
digital knoll
upbeat canopy
#

np!