title: .Net Core 2.2 Web API getting 415 Unsupported Media type on a GET?
body: <p>I have upgraded my WebApi project to .net core 2.2 and since then, all of my controllers are pulling 415 Unsupported Media type from every single GET call. Which is super strange because 415 is generally something reserved for POST in my experience. </p>
  
  <p>If I downgrade back to 2.1, problem goes away. I've posted code below of my controller setup, and the basic startup config. </p>
  
  <pre><code>    [Route("v1/[controller]")]
      [Produces("application/json")]
      [Consumes("application/json")]
      [Authorize]
      public class JobsController : ControllerBase
      {
          [HttpGet]
          public IActionResult GetJobSummaryByUserId([FromQuery] PagedJobRequest pagedJobRequest)
          {
              if (pagedJobRequest.UserId == Guid.Empty)
              {
                  pagedJobRequest.UserId = _jwtUtility.GetIdentityId();
              }
              if (!_jwtUtility.DoesJwtIdentityIdMatch(pagedJobRequest.UserId) &amp;&amp; !_jwtUtility.IsUserInRole("Administrator"))
              {
                  return Unauthorized();
              }
  
              var returnObj = _jobsService.GetJobSummariesByUserId(pagedJobRequest);
  
              return Ok(returnObj);
          }
  }
  </code></pre>
  
  <p>In Startup.cs:</p>
  
  <pre><code> public void ConfigureServices(IServiceCollection services)
      {
          services.AddMvc();
          services.AddCors(x =&gt; x.AddPolicy("MVRCors", y =&gt; y.AllowCredentials().AllowAnyHeader().AllowAnyMethod().AllowAnyOrigin()));
          services.AddEntityFrameworkSqlServer();
          }
     public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory)
      {
  
          if (env.IsDevelopment())
          {
              app.UseDeveloperExceptionPage();
              app.UseSwagger();
              app.UseSwaggerUI(s =&gt;
              {
                  s.SwaggerEndpoint("/swagger/v1/swagger.json", "MVR.Api.Jobs");
              });
          }
  
          ConfigureExceptionHandling(app);
          app.UseMvc();
          app.UseCors("MVRCors");
  
          loggerFactory.AddSerilog();
      }
  </code></pre>