An unhandled exception occurred while processing the request.
UnsupportedMediaTypeException: No MediaTypeFormatter is available to read an object of type 'LivroApi' from content with media type 'text/html'.
System.Net.Http.HttpContentExtensions.ReadAsAsync<T>(HttpContent content, Type type, IEnumerable<MediaTypeFormatter> formatters, IFormatterLogger formatterLogger, CancellationToken cancellationToken)
Stack Query Cookies Headers
UnsupportedMediaTypeException: No MediaTypeFormatter is available to read an object of type 'LivroApi' from content with media type 'text/html'.
System.Net.Http.HttpContentExtensions.ReadAsAsync<T>(HttpContent content, Type type, IEnumerable<MediaTypeFormatter> formatters, IFormatterLogger formatterLogger, CancellationToken cancellationToken)
System.Net.Http.HttpContentExtensions.ReadAsAsync<T>(HttpContent content, Type type, IEnumerable<MediaTypeFormatter> formatters, IFormatterLogger formatterLogger)
System.Net.Http.HttpContentExtensions.ReadAsAsync<T>(HttpContent content, IEnumerable<MediaTypeFormatter> formatters)
System.Net.Http.HttpContentExtensions.ReadAsAsync<T>(HttpContent content)
Alura.WebAPI.WebApp.HttpClients.LivroApiClient.GetLivroAsync(int id) in LivroApiClient.cs
+
return await responseMessage.Content.ReadAsAsync<LivroApi>();
Alura.ListaLeitura.WebApp.Controllers.LivroController.Detalhes(int id) in LivroController.cs
+
var model = await _api.GetLivroAsync(id);
Microsoft.AspNetCore.Mvc.Internal.ActionMethodExecutor+TaskOfIActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, object controller, object[] arguments)
System.Threading.Tasks.ValueTask<TResult>.get_Result()