You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can add error-handling. I imagine the api provides some info if the user is prem or not. So could either check that before making the request. Or handle the error after the request. I suggest the latter (handling the error). Easier to get started with and probably good to get add some error-handling in the services anyways?
What do you think?
The text was updated successfully, but these errors were encountered:
Yeah, that error handling was on my plans, we just need to map all the endpoints that require premium account. Maybe we can do both, prevent the actions that require premium (for free accounts) and handling the error in the services.
Ok, sounds reasonable. Regarding the services, what do you think about catching the error in the ServiceBase. And then if it is something that should be shown to the user, rethrow, and catch that error in the calling service? Or in cases where it makes sense, retry the request.
With this error I guess there is no point in rethrowing the error, so just handle it in the base-service and return.. null or an empty?
I am getting errors because I am not premium.
I can add error-handling. I imagine the api provides some info if the user is prem or not. So could either check that before making the request. Or handle the error after the request. I suggest the latter (handling the error). Easier to get started with and probably good to get add some error-handling in the services anyways?
What do you think?
The text was updated successfully, but these errors were encountered: