Alex
Alex

Reputation: 1

Get an 406 error when calling my api from navigator after migration from ASP.NET Core 2.1 to 6.0

I would like to call my API from an application to get data from my database.

I wrote an API in ASP.NET Core 2.1 and decided to migrate it to .NET 6.0. The result is returned as a JsonApi.

The API is working fine from Swagger. There is no error.

But if I want to call it from navigator or from an other application, I get an http 406 error and I don't understand why.

I didn't have this error when my API was running on .NET Core 2.1. It worked fine.

Upvotes: 0

Views: 11

Answers (0)

Related Questions