Handle response when http_component is set and include logging of x-fb-debug, x-fb-rev
Description:
This PR includes changes which will help use the latest koala version when http_component is set
Changes included:
- Parsing of response: when
http_componentis set, we receiveKoala::Http_service responseinstead of a hash andgenerate_resultsmethod handles only JSON response. This affects all batch request. - include
x-fb-trace-idandx-fb-debug x-fb-revas part of the error_message returned
[X] My PR has tests and they pass!
@ylecuyer bumping this for consideration when you have a moment 🙏
I checked the code and the PR is mixing 3 things afaics. Would you mind splitting it and making on per per change, namely:
- adding a new http_component that would return the body of the response
- adding the new debug headers
- returning custom error when the body is nil
this way review will be easier and changes will appear clearly in the changelog
@ylecuyer 1 & 3 : https://github.com/arsduo/koala/pull/685, 2 separate commits 2: https://github.com/arsduo/koala/pull/686
cc @codealchemy
@ylecuyer I have now fixed the failing units tests. Could you please help review the below PRs.
- https://github.com/arsduo/koala/pull/685 2: https://github.com/arsduo/koala/pull/686 cc @arsduo