reactiveui / refit

The automatic type-safe REST library for .NET Core, Xamarin and .NET. Heavily inspired by Square's Retrofit library, Refit turns your REST API into a live interface.
https://reactiveui.github.io/refit/
MIT License
8.62k stars 746 forks source link

[BUG] Refit doesn't catch 415 as ApiException in Android while HttpClient does #733

Closed gsgou closed 4 years ago

gsgou commented 5 years ago

Describe the bug In Xamarin Android with a test endpoint a POST fails with 415 if not specifying Content-Type.

While a HttpClient implementation traps the Exception, Refit ApiException or ValidationApiException do not.

Steps To Reproduce I will add here over weekend a sample and steps to reproduce.

Expected behavior Get an ApiException with status code 415

Environment

gsgou commented 4 years ago

In an updated configuration does not occur any longer, can be closed.

Environment

OS: Android Version: 9 Device: any device e.g. GooglePixel Mono: 6.6.0.166 Xamarin.Android: 10.1.3.7

github-actions[bot] commented 1 year ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.