Starts in:
1 DAY
13 HRS
23 MIN
12 SEC
Starts in:
1 D
13 H
23 M
12 S
Open Closed

AbpValidationException-returning-http-status-code-500-instead-of-400 #8097


User avatar
0
sukhdeep.dhillon created
  • ABP Framework version: v8.1.1
  • UI Type: MVC
  • Database System: EF Core (SQL Server)

based on the ABP documentation, whenever we are throwing AbpValidationException in app service, it should return 400 bad request. but I don't know why its retuning 500.

following is the screenshot of postman, making request to the endpoint and returning 500


3 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    Could you please share your code to reproduce it

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    I can't reproduce the problem

  • User Avatar
    0
    sukhdeep.dhillon created

    Hi,

    after seeing your screenshot when I tried that endpoint from swagger. its working fine with swagger returning 400 but with postman its still returning 500. not sure, seems like postman issue

Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06