Open thomasbalsloev opened 9 years ago
Thanks for letting us know - do you want to take a look at fixing it? Just fork the repo and then submit a pull request and I'll get it all published.
Hi Chris. Sorry for getting back so late on this. I do not have the time at my workplace for this, at least not currently. So if another wants to take a shot at this it would be most welcome.
Thomas.
Just noting that I'm having the same problem, which makes this gem essentially unusable for the time being. Does anyone know if there's a way to access the error through some kind of hack, until it gets fixed?
@colinc Do you have any thoughts on this?
Hey Guys. I hope this finds you well. I'm just wondering where we are on this. It looks like there's an open PR, but it's just been sitting there for months.
I'm wondering if there's anything that I can do. I've looked at @robins35's code, and it looks good to me. I'm not sure about the removal of pony, and if perhaps that is causing the failing build for final commit.
Please let me know. I'd love to help and get this added to the gem. Cheers.
Hi Chris.
It seems the error body is not parsed correctly for 422 errors. The 422 response format is http://dev.desk.com/API/using-the-api/#validation-codes which the error_body method is not parsing correctly.
I only get error messages like this missing the body part: POST https://xxx.desk.com/api/v2/cases: 422
Secondly, it would be useful to be able to access the raw response body for getting the complete info of the error.
Best regards, Thomas Balsløv.