Skip to content

axios and https proxy - is it possible to revert request lib drop? #7037

@toaster74

Description

@toaster74

Describe the bug
Axios does not work with corporate https proxies that are tunnelling https requests through http-CONNECT. All workflows worked with alternative request lib, that has been dropped in 1.0 (N8N_USE_DEPRECATED_REQUEST_LIB).

Is it possible to give again access to the request lib?

To Reproduce
Steps to reproduce the behavior:

  1. Create a http node and retrieve https://www.google.com and use corporate proxy (squid) via http_proxy and https_proxyenvironment variables
  2. Click on Execute
  3. It gets an error "Bad Gateway"

Expected behavior
The html content of www.google.com should be retrieved.

Environment (please complete the following information):

  • OS: docker
  • n8n Version 1.0.4
  • Database system : postgresql
  • Operation mode : main

Additional context
This behaviour has been documented by many sites (axios/axios#4766).

Metadata

Metadata

Assignees

No one assigned

    Labels

    In ReviewWe are reviewing the issuein linearIssue or PR has been created in Linear for internal review

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions