Forum Discussion
Draco18s
8 years agoExplorer
Errors returned by Oculus are useless
When a user cancels purchasing an in-app product, the error message returned to my app is "Oculus.Platform.Models.Error" from this code:
As does, apparently, every other error that I've come across.
I've also tried .ToString() and .GetString() (both of which return the same thing as .GetError()).
How bloodly useless, not only can I not tell what happened, but I can't display a message to the user!
private void LaunchCheckoutFlowCallback(Message<Purchase> msg) {
if(msg.IsError) {
Debug.LogFormat("An error occured while purchasing: {0}", msg.GetError());
return;
}
// ...
// non-error code
}
The error returned when the product SKU is missing from the developer portal is "Oculus.Platform.Models.Error"As does, apparently, every other error that I've come across.
I've also tried .ToString() and .GetString() (both of which return the same thing as .GetError()).
How bloodly useless, not only can I not tell what happened, but I can't display a message to the user!
2 Replies
- Carolina_VRHonored GuestAny updates here?
- AurelinatorExplorer@Carolina_VR - the error object is behaving as expected. In the persons code above, they are trying to log the error object as a string, when it is in fact an object. It contains data like the Http code of the failure, and a message you can use for logging or telemetry!
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 3 years ago