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

Markdown supported.
Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)

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

    Hi,

    Could you please share your code to reproduce it

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    liangshiwei created
    Fullstack Developer

    I can't reproduce the problem

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • 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

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.8.0-preview. Updated on September 16, 2026, 14:50
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.