Closed subalee closed 1 year ago
Hi @Subalee,
The error should return the request response and status in err.params.response
and err.params.status
.
Could you send us the content?
Thanks
Hey @iaphub sorry for not replying sooner. Not 100% sure if this was the case but I think what caused the issue for me was the react-native-debugger.
I think the issue was that it was intercepting the polyfilled fetch used by react-native-iaphub
Once I turned the debugger off everything started to work again.
I'll close this but if you are interested to reproduce it you could just try out the debugger. Or maybe it was something completely different.
Since today I've been getting this error whenever I try to call
Iaphub.buy(sku)
by looking inside the package I think the issue is with
react-native-iaphub
trying to parse a response that is not a valid jsonrunning on:
The weird thing is it worked just fine yesterday, so it could totally be a user related error