-
Notifications
You must be signed in to change notification settings - Fork 178
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace request
with the much ligther got
module
#186
Conversation
I'm not sure I want to push this change into 4.x. Also, as a side note, I want to be careful with retries as explained here. Influx seems to have gotten better about panicking in the last couple releases but I'm still quite hesitant about adding code that could knock down a cluster 😉 |
Alternately we could simply avoid using an external request library and use the built-in |
But what I wanted to end up with is using |
@dandv I'm traveling / spotty for the next few weeks, so not a lot of time to dig in, but you may want to consider rebasing this on top of #164. Previously, the tests needed to run in a strict order for the test suite to run correctly and I had had some transient issues I couldn't track down (I think due to DB state not tearing down correctly in back-to-back tests not test order, but still fixed regardless). |
Yea, my guess would be that there's some kind of race which is not triggering within WebStorm, but that is triggering (probably as a result of different timing characteristics in request vs got) on Travis. If you get a chance today to rebase on #164 I would be cool with merging it. If not I'll do so when I get home tonight; I think that would fix the test failures. |
Thanks @connor4312. Maybe best to let you merge #164 first, then I'll submit another PR instead using |
Sure, I would be fine with using a fetch API and I see the value in making node-influx work in browsers. I'm not hugely tied to using |
Closing in favor of #195, which would've taken me far less if it weren't for node-fetch/node-fetch#165 👎 |
WIP fix for #177
All tests pass when debugging in WebStorm. 5 tests fail when running
npm test
- can someone help figure out why, maybe @ppannuto?Also, we keep a
retries
key in our requestOptions, andrequest()
didn't support aretries
option.got()
does have one such option.