Catch Response 500 error in ZnClient
How to catch a ZnResponse(500 Internal Server Error) ? (see fogbugz issue 13905) I tried to add a ifFail:[....] block but it does not get called on this response. Nicolai
Hi Nicolai, I must have missed that one somehow, I will look into it. OTOMH, I think you need to add an #enforceHttpSuccess:true or #systemPolicy to the ZnClient instance being used. Sven On 03 Oct 2014, at 17:49, Nicolai Hess <nicolaihess@web.de> wrote:
2014-08-24 13:10 GMT+02:00 Nicolai Hess <nicolaihess@web.de>: How to catch a ZnResponse(500 Internal Server Error) ? (see fogbugz issue 13905)
I tried to add a ifFail:[....] block but it does not get called on this response.
Nicolai
Anyone ? :)
2014-10-03 18:22 GMT+02:00 Sven Van Caekenberghe <sven@stfx.eu>:
Hi Nicolai,
I must have missed that one somehow, I will look into it.
OTOMH, I think you need to add an #enforceHttpSuccess:true or #systemPolicy to the ZnClient instance being used.
Great! enforceHttpSuccess:true -> success :)
Sven
On 03 Oct 2014, at 17:49, Nicolai Hess <nicolaihess@web.de> wrote:
2014-08-24 13:10 GMT+02:00 Nicolai Hess <nicolaihess@web.de>: How to catch a ZnResponse(500 Internal Server Error) ? (see fogbugz issue 13905)
I tried to add a ifFail:[....] block but it does not get called on this response.
Nicolai
Anyone ? :)
participants (2)
-
Nicolai Hess -
Sven Van Caekenberghe