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

Replace deprecated 'request' library with a maintained alternative #2

Open
rohandhananjaya opened this issue Aug 17, 2023 · 0 comments

Comments

@rohandhananjaya
Copy link

The current implementation of the chatbot backend uses the request library for HTTP calls. However, the request library has been deprecated and is no longer maintained. This could lead to potential security vulnerabilities and lack of updates in the future.

Steps to Reproduce:

  • Navigate to the /rawbot endpoint.
  • Observe the usage of the request function for making HTTP calls.
  • Expected Behavior:
  • The backend should use a maintained and actively supported library for HTTP requests.

Actual Behavior:

  • The backend uses the deprecated request library.

Suggested Fix:

  • Replace the request library with a more modern and maintained alternative, such as axios or node-fetch.

Additional Information:

Link to the deprecated request library on npm
Link to axios library on npm

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

No branches or pull requests

1 participant