镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content
This repository was archived by the owner on Jun 23, 2025. It is now read-only.

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

Open

Description

@SuperLLN

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",

Activity

  1. yusuftor commented on May 27, 2024

    @yusuftor
    Collaborator

    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.

  2. SuperLLN commented on May 27, 2024

    @SuperLLN
    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?

  3. yusuftor commented on May 31, 2024

    @yusuftor
    Collaborator

    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.

  4. OtmaniCodes commented on Mar 27, 2025

    @OtmaniCodes

    Hello, were you able to resolve this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions