Skip to content

API stop working in ASP core 6 after adding new ConsumesAttribute("application/json") angular project #42462

@tnlthanzeel

Description

@tnlthanzeel

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

i migrated a project to asp core 6. the project is an API project where it serves angular as front end. after the migration the APIs stopped working for one single line of code

image

so if i comment this line of code and re-run the project the API works. i have no idea

here is the link to the minimal repro - https://github.com/tnlthanzeel/VPMS-POC

Expected Behavior

APi should work as normal

Steps To Reproduce

No response

Exceptions (if any)

No response

.NET Version

asp core 6

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-mvcIncludes: MVC, Actions and Controllers, Localization, CORS, most templatesfeature-routing

    Type

    No type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions