[progress Communities] [progress Openedge Abl] Forum Post: Re: How To Cancel Request From...

  • Thread starter Thread starter jts-law
  • Start date Start date
Status
Not open for further replies.
J

jts-law

Guest
Peter, When I don't set the StatusCode, the response status always returns 500. Also, I tried commenting everything out except for setting Error to a new AppError and the following is what is returned: This is the only code executing: poEventArgs:Error = NEW AppError("Unauthorized access", 400). This is what the client receives in the body, and I don't see my error text in any header values either, and the status is 500 on this response. I also noticed that when the responsewriter is used, the response is returned right away, using just the AppError causes the response to take just over 2 seconds which makes me think it's timing out. { "_retVal": "", "_errors": [] } I need to be able to return the error details to the client. Do I need to use json in the AppError? Louis

Continue reading...
 
Status
Not open for further replies.
Back
Top