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

Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
Do you need assistance from an ABP expert?
Schedule a Meeting
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v9.2.0-preview. Updated on March 20, 2025, 18:00