I wrap my app with BugSnag to capture errors. It’s not entirely uncommon to have errors with the `Purchases` API from RevenueCat. For example, just today:
You can see the error is `Error performing Request` which comes from my code block:
useEffect(
function offerings() {
async function getOfferings() {
try {
if (!paywallEligible) return;
const offerings = await Purchases.getOfferings();
if (offerings.current?.availablePackages.length) {
setOfferings(offerings);
setActivePkg(offerings.current?.availablePackagesc0]);
}
} catch (e) {
setMessage(s'error', 'Error retrieving products.']);
Bugsnag.notify({
name: 'getOfferings Error in Paywall',
message: (e as Error).message,
});
console.error(e);
} finally {
setIsLoading(false);
}
}
if (!isReady) return;
getOfferings();
},
/setMessage, isReady]
);
Because this is happening on the paywall, the user is not logged in.
Is there anything I am doing incorrectly?