azos icon indicating copy to clipboard operation
azos copied to clipboard

Wave JSON body read error: add system code for HTTP 400 so the client can react to sending an invalid body by capturing such body and logging locally for further analysis

Open itadapter opened this issue 1 year ago • 2 comments

Related: #833

WorkContext.DoGetRequestBodyAsJsonDataMapAsync

catch(Exception error)
        {
          throw new HTTPStatusException(WebConsts.STATUS_400,
                                        WebConsts.STATUS_400_DESCRIPTION + " body processing error",//<===== ADD A TAG So we can search for it
                                        error.ToMessageWithType(),
                                        error);
        }

itadapter avatar Feb 24 '23 20:02 itadapter