Post

Replies

Boosts

Views

Activity

21007 Status Code being returned by Sandbox Verify Receipt Endpoint
We have an issue with validating in-app purchases which just seemed to start occurring today. When you send a sandbox receipt to the production endpoint (https://buy.itunes.apple.com/verifyReceipt), it returns the status code 21007 with the message. This receipt is from the test environment, but it was sent to the production environment for verification. This is documented here: https://developer.apple.com/documentation/appstorereceipts/status It is then advised to attempt this receipt on the sandbox endpoint (https://sandbox.itunes.apple.com/verifyReceipt) due to the status code returned. We have used this successfully for about a year now. We check the status code and if it is 21007, we then try the sandbox endpoint. As of today, we started seeing that the sandbox endpoint is returning a 21007 status code which does not make sense and threw our API into a recursive loop since it kept seeing that status and kept trying the sandbox endpoint. This status code is clearly wrong as it was not 'sent to the production environment' in these cases and this status code has never been returned in the past from the sandbox endpoint. Is this a bug introduced by Apple as of today or has something changed that I have not seen the documentation for?
34
0
19k
May ’23
CoreML model prediction on image recognition only working on iPhone 11 and 12 models
I created an image recognition .mlmodel file in the Create ML app. I am now using it in an iOS app. It works great on iPhone 11 and iPhone 12 (and the corresponding models) but not on iPhone 8, iPhone 8 Plus and iPhone X. There are likely other models it does not work on but those are the ones I can confirm so far. The code I am using is: do {     let prediction = try self.model.prediction(image: pixelBuffer!) } catch { print("\(error)") } On the models where this does not work, the error printed in the console is: Error Domain=com.apple.CoreML Code=1 "Predicted feature named 'classLabel' was not output by pipeline" UserInfo={NSLocalizedDescription=Predicted feature named 'classLabel' was not output by pipeline} Due to the lack of documentation on CoreML I could not find a solid trace on this error. There are some random posts on Stack Overflow and there's also Git issues on the Turicreate Github (the underlying Python library which Core ML runs) but nothing that seems to give direct answers to this issue. Any help would be greatly appreciated. Thanks!
0
0
1k
Apr ’21