Skip to content

N8N Ignores HTTP/HTTPS Proxy Environment Variables When Connecting to External Services (e.g., Notion) #21199

@Lerr1uqs

Description

@Lerr1uqs

Bug Description

I have set the http_proxyand https_proxyenvironment variables in my command line. However, when n8n tries to access Notion, it does not use the proxy (I see no activity in my proxy software).
I started n8n with the debug log level enabled using the following command in PowerShell:

$env:N8N_LOG_LEVEL='debug'; n8n

The debug logs do not show the message "Installing global HTTP proxy agents," which suggests the proxy settings are not being recognized. The connection to Notion ultimately fails.
It appears that n8n is not respecting the standard HTTP proxy environment variables for its outbound connections to external services like Notion.

To Reproduce

$env:HTTP_PROXY="http://127.0.0.1:7890"
$env:HTTPS_PROXY=$HTTP_PROXY
n8n

You can see that the traffic does not go through the proxy client.

Expected behavior

access external server through local proxy.

Debug Info

Debug info

core

  • n8nVersion: 1.116.2
  • platform: npm
  • nodeJsVersion: 22.21.0
  • nodeEnv: undefined
  • database: sqlite
  • executionMode: regular
  • concurrency: -1
  • license: community
  • consumerId: unknown

storage

  • success: all
  • error: all
  • progress: false
  • manual: true
  • binaryMode: memory

pruning

  • enabled: true
  • maxAge: 336 hours
  • maxCount: 10000 executions

client

  • userAgent: mozilla/5.0 (windows nt 10.0; win64; x64) applewebkit/537.36 (khtml, like gecko) chrome/141.0.0.0 safari/537.36 edg/141.0.0.0
  • isTouchDevice: false

Generated at: 2025-10-26T10:07:32.437Z

Operating System

window 11

n8n Version

1.116.2

Node.js Version

22.21.0

Database

SQLite (default)

Execution mode

main (default)

Hosting

self hosted

Metadata

Metadata

Assignees

No one assigned

    Labels

    in 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