Skip to content

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

@rohandhananjaya

Description

@rohandhananjaya

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions