amiantos/aislingeach

improve rating error handling

Closed this issue · 2 comments

From TestFlight...

image

Rated the image and pressed submit and got a error

I've seen this happen when you load an image, put in your API key, then try to rate it... so maybe that is what happened here, but I thought I put in a bespoke error for 403? Maybe that was a 401... anyway... improvements to be made here obviously.

Another report from App Store connect

image

I implemented some changes tonight to catch a specific case where users may get an authentication error like this (if they swap API keys out between fetching an image and trying to rate it). Not sure if that is what is going on here, but it's a first step. If it's just an intermittent auth error, right now there is no way to recover from the error message without closing an reopening the app...

Fixed in #45