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'm testing using my app offline by switching off my server. If I call ExecuteTaskAsync I'm getting an unhandled exception since the server is unavailable and the response is null.
The error arises in RestClient.Async.cs,
var async = ExecuteAsync(request, (response, _) =>
{
....
});
Would it make sense to handle the case where response is null e.g.
else if (response == null)
{
taskCompletionSource.TrySetException(new NullReferenceException());
}