Open Closed

API Error handling and custom 404 pages #2407


User avatar
0
steve.burgess created
  • ABP Framework version: 4.4.2
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

Hi,

I have a couple of questions around error handling. I currently have an angular frontend with a REST API backend

I’m attempting to disable the default error handling for my APIs in the angular frontend.

It appears that you can pass “skipHandleError: true” to the RestService to achieve this. However, I’m automatically generating the service proxies using the abp suite with “abp generate-proxy”. Is there any way to tell this auto generation to set skipHandleError to true?

I’m also struggling to create a custom 404 page. Are there any examples of how to do this?

Thanks,

Steve.


3 Answer(s)
  • User Avatar
    0
    bunyamin created

    Hello,

    You can follow the instructions in the docs

  • User Avatar
    0
    steve.burgess created

    Wow, not sure how i managed to miss that.

    Thanks for pointing me in the right direction.

    Cheers,

    Steve.

  • User Avatar
    0
    bunyamin created

    No problem :)

    Have a good one Bunyamin

Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11