Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The operation couldn't be completed. (superwall_react_native.PurchaseResultError error 1.) #5

Open
SuperLLN opened this issue May 27, 2024 · 3 comments

Comments

@SuperLLN
Copy link

Hello, since a few days every time we try to purchase a product on iOS we got the confirmation message "You're all set" and then the following error.
IMG_4843

On RevenueCat I can see the purchases as completed but the users can't access to the premium features and restore purchases. It's becoming critical as this error happens for all the users on the live version.

How could I fix it?

"@superwall/react-native-superwall": "^1.1.3",
"react-native-purchases": "^7.26.1",

@yusuftor
Copy link
Collaborator

yusuftor commented May 27, 2024

Hi, this is an error that originates from your purchase controller's purchase function. Please check that you aren't receiving an error from RevenueCat on purchase within your app and that you're returning the correct value on successful purchase in your purchase controller.

@SuperLLN
Copy link
Author

Thank you for your reply @yusuftor. I reused exactly the same code for RCPurchaseController as in your example and everything seems ok at this level. For information the payment is working on RevenueCat side. I'm checking this subject because I've received several complaints from users in the last few days, even though everything had been working perfectly for nearly a month.

I was able to obtain a log with MySuperwallDelegate and it's an EventType.transactionFail event that seems to be linked to Superwall that is triggered.

Handling Superwall event:', { event:
{ type: 'transactionFail',
error: 'The operation couldn't be completed (SuperwallKit.TransactionError error 1.)',

What can I do to make it work again?

@yusuftor
Copy link
Collaborator

yusuftor commented May 31, 2024

The transactionFail event is just an underlying type when a PurchaseResultFailed is returned from the PurchaseController. Are you able to reproduce this issue every time? A search online shows "The operation couldn't be completed" happening from within RevenueCat's SDK and that's then passing to our SDK. But it's strange that you can see the payment working on RevenueCat's side though. I just released v1.2.0 which shows the error message without PurchaseResultError. But I imagine it will now just show "The operation couldn't be completed" but worth testing just to see if the error is any less generic sounding.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants