Migrate from request to axios http client #29
Conversation
Related to snowplow/snowplow#3182. Axios is http client with ability to run under different environments such as browser or node. Axios is promise based but emitter still takes single callback function due to the backward compatibility.
Thanks for your pull request. Is this your first contribution to a Snowplow open source project? Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://github.com/snowplow/snowplow/wiki/CLA to learn more and sign. Once you've signed, please reply here (e.g. I signed it!) and we'll verify. Thanks. |
@snowplowcla I signed it! |
Confirmed! @hose314 has signed the Individual Contributor License Agreement. Thanks so much |
Have no idea why but all tests passed locally |
From my experience with JavaScript tracker this happens because of some version incompatibilities.
|
Okay, i will try to figure out it on |
No problems! If you're going to bump Node, dependencies, tweak travis.yml or do other not axios-related stuff, please do it as a separate commit. Thank you very much. |
Two options here:
|
I'm okay with removing |
@chuwy okay, then i close this PR and implement own emitter on steroid)) If someone also will encounter the same issue, please mention me and i will make new PR. |
@hose314 by "own emitter not for this PR" I meant that I like idea of having separate emitters in general. If last thing we need to do to make this PR working is to remove NodeJS 0.10 then it's fine. Sorry for confusion. |
It would be great to have support for an axios emitter, as it would unblock react-native support for this library 👍 |
This PR is a year old and for my understanding it was already reviewed. Any chance this is going to be merged anytime soon? Like @AlanFoster mentioned, this would make react native support possible! :) |
I think @hose314 closed the PR. Could you make a new PR, Andrey? |
Hi everyone, |
Related to snowplow/snowplow#3182.
Axios is http client with ability to run under different
environments such as browser or node. Axios is promise based but emitter
still takes single callback function due to the backward compatibility.