Skip to content

fix(core): Fix HTTP proxy support in all nodes and other axios requests #16092

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

elsmr
Copy link
Member

@elsmr elsmr commented Jun 6, 2025

Summary

Fix support for HTTP(s) proxies

  • Disable axios built-in proxy because of Proxy support does not work properly with CONNECT on https requests axios/axios#4531
  • When a user configures a proxy in the HTTP Request node, use it
  • Use HTTP_PROXY/HTTPS_PROXY/ALL_PROXY/NO_PROXY env vars
    • using proxy-from-env (same package as axios)
    • Apply to
      • All nodes including HTTP request node (when no proxy configured in node UI)
      • All other axios requests made from the backend using interceptor
      • Also proxies after redirects

Tested with tinyproxy

Related Linear tickets, Github issues, and Community forum posts

https://linear.app/n8n/issue/NODE-2942/http-request-node-proxy-issue

Review / Merge checklist

  • PR title and summary are descriptive. (conventions)
  • Docs updated or follow-up ticket created.
  • Tests included.
  • PR Labeled with release/backport (if the PR is an urgent fix that needs to be backported)

Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

cubic reviewed 5 files and found no issues. Review PR in cubic.dev.

@dana-gill dana-gill self-requested a review June 6, 2025 10:12
@elsmr elsmr requested review from a team and schrothbn June 6, 2025 10:20
Copy link

codecov bot commented Jun 6, 2025

Codecov Report

Attention: Patch coverage is 87.75510% with 6 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
...xecution-context/utils/request-helper-functions.ts 87.75% 6 Missing ⚠️

📢 Thoughts on this report? Let us know!

@n8n-assistant n8n-assistant bot added core Enhancement outside /nodes-base and /editor-ui n8n team Authored by the n8n team labels Jun 6, 2025
Copy link
Contributor

@schrothbn schrothbn left a comment

Choose a reason for hiding this comment

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

Looks good to me

Copy link
Contributor

github-actions bot commented Jun 6, 2025

✅ All Cypress E2E specs passed

Copy link
Contributor

@dana-gill dana-gill left a comment

Choose a reason for hiding this comment

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

Screenshot 2025-06-06 at 16 22 02

I'm getting this error with the HTTP Node while using GET. POST does work though 😄

Comment on lines -27104 to +27113
debug: 3.2.7(supports-color@5.5.0)
debug: 3.2.7(supports-color@8.1.1)
Copy link
Contributor

Choose a reason for hiding this comment

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

It looks like there are dependencies here which shouldn't be updated 🙈

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Enhancement outside /nodes-base and /editor-ui n8n team Authored by the n8n team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants