Skip to content
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

fix: move from request module to axios #266

Closed
wants to merge 1 commit into from
Closed

Conversation

deepakrkris
Copy link
Contributor

fixes: #262

Checklist

  • New tests added or existing tests modified to cover all changes
  • Code conforms with the style
    guide

@deepakrkris deepakrkris force-pushed the switchToAxios branch 7 times, most recently from a545bdc to 9c02b5d Compare February 28, 2020 17:03
@stale
Copy link

stale bot commented Apr 28, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Apr 28, 2020
@dhmlau dhmlau removed the stale label Apr 29, 2020
@@ -12,6 +12,7 @@
"lodash": "^4.17.11",
"node-rsa": "^1.0.5",
"request": "^2.72.0",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should also remove the dependency.

@@ -12,6 +12,7 @@
"lodash": "^4.17.11",
"node-rsa": "^1.0.5",
"request": "^2.72.0",
"axios": "^0.19.2",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I have PTSD from this library.

Look no further than: https://github.com/axios/axios/blob/master/lib/core/mergeConfig.js#L13-L72

I don't know what to recommend instead, but I would strongly recommend to avoid axios.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

node's own http library is pretty trivial to get working, I use it whenever possible to connect to API endpoints

@stale
Copy link

stale bot commented Sep 5, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Sep 5, 2020
@stale
Copy link

stale bot commented Sep 20, 2020

This issue has been closed due to continued inactivity. Thank you for your understanding. If you believe this to be in error, please contact one of the code owners, listed in the CODEOWNERS file at the top-level of this repository.

@stale stale bot closed this Sep 20, 2020
@vinu-vrize
Copy link

@avindra why was Axios avoided, it could have replaced the request. Axios is actively being maintained and there were no active security issues now.

@avindra
Copy link
Contributor

avindra commented Feb 8, 2021

@avindra why was Axios avoided

@vv619-perf axios still has:

I might do a more extended writeup on this, because it seems that half the JS people out there are haplessly using axios without knowing the real issues.

@carlosingles
Copy link

Is there a preferred library to use to replace request? I am interested in having this resolved, but am tentative to select a library without getting approval first.

Would superagent be suitable?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

request module is deprecated
7 participants