When trying to make a purchase in the sandbox for Apple TV I receive ERROR: 🍎‼️ There was a problem with the App Store. To get around this problem I have to log out of my sandbox account on the TV and immediately log back in. This resolves the issue for 10 minutes or so when I then have to do the same thing again. Rinse and repeat. Outside of continually logging out and back in again, what can be done to more permanently solve this issue? This does not give me confidence to put something in production.
Full error details:
Optional(Error Domain=RCPurchasesErrorDomain Code=2 "There was a problem with the App Store." UserInfo={readable_error_code=STORE_PROBLEM, NSLocalizedDescription=There was a problem with the App Store., NSUnderlyingError=0x280058810 {Error Domain=SKErrorDomain Code=0 "An unknown error occurred" UserInfo={NSLocalizedDescription=An unknown error occurred, NSUnderlyingError=0x28007ba20 {Error Domain=ASDErrorDomain Code=500 "Unhandled exception" UserInfo={NSUnderlyingError=0x280078c00 {Error Domain=AMSErrorDomain Code=301 "Invalid Status Code" UserInfo=0x281bdbe80 (not displayed)}, NSLocalizedFailureReason=An unknown error occurred, NSLocalizedDescription=Unhandled exception}}}}})