When PATCHing to a RESTful service, the service responds with 302 to redirect me to the updated source. Instead getting it's content (default RoR behavior) the library retries to PATCH to the new url, which ends in an infinite loop, which is only catched by my servers spam protection.
I tried to intercept this by overwriting _performApiCall and looking at fail and done. Both methods are not called, until my server stops the cycle by sending a status code of 0.
My suggestion is, to keep the current implemtation as default behavior, but enable the interception by (a) a concrete method or (b) a new entry in ApiCallOptions.
Looking forward to discuss a possible solution, that does not include changing the backend.
Regards,
Sascha
When PATCHing to a RESTful service, the service responds with
302to redirect me to the updated source. Instead getting it's content (default RoR behavior) the library retries to PATCH to the new url, which ends in an infinite loop, which is only catched by my servers spam protection.I tried to intercept this by overwriting
_performApiCalland looking atfailanddone. Both methods are not called, until my server stops the cycle by sending a status code of 0.My suggestion is, to keep the current implemtation as default behavior, but enable the interception by (a) a concrete method or (b) a new entry in
ApiCallOptions.Looking forward to discuss a possible solution, that does not include changing the backend.
Regards,
Sascha