Mangopay/mangopay2-ruby-sdk

FilterParameters.response doesnt handle cases when the response is not valid json

Closed this issue · 3 comments

Sometimes during network issues a non json response body is returned e.g. '()'. In this case do_request_with_logging method fails, because it relies on FilterParameters.response to parse body to json for filtering.

https://github.com/Mangopay/mangopay2-ruby-sdk/pull/160

I am not a ruby dev. I see your point in the question, hope this fixes it

@SoloJr the link you provided is not working

#160

did not work as it was merged