HTTP Request node proxy not working

Describe the problem/error/question

Hello, I am having trouble using a proxy server with the HTTP Request node.

I am using the node for web scraping and need the source IP to be rotated. The proxy address is in this format: -dc-IT:@eu.proxy-jet.io:1010

I have done several tests with the curl command from my Mac, launching curl from the command line inside the Docker container and also using the Execute Command node, testing on the website https://httpbin.org/ip.

curl -x <USERNAME>-dc-IT:<PASSWORD>@eu.proxy-jet.io:1010 https://httpbin.org/ip

In all cases, the proxy works, giving me a different IP address each time I launch it. The problem is that the proxy set in the HTTP Request node always returns my real IP address. The node is set by importing curl.

These are the Env variables in compose.

   - CODE_ENABLE_STDOUT=true


      - N8N_COMMUNITY_PACKAGES_ENABLED=true

      - N8N_UNVERIFIED_PACKAGES_ENABLED=true

      - N8N_HOST=my-url.it

      - N8N_PROTOCOL=http

      - WEBHOOK_URL=https://my-url.it

      - GENERIC_TIMEZONE=Europe/Rome

      - TZ=Europe/Rome

      - N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS=true

      - N8N_RUNNERS_ENABLED=true

      - DB_TYPE=postgresdb

      - DB_POSTGRESDB_HOST=db

      - DB_POSTGRESDB_PORT=5432

      - DB_POSTGRESDB_DATABASE=n8n

      - DB_POSTGRESDB_USER=n8n

      - DB_POSTGRESDB_PASSWORD=n8npass

Am I doing something wrong?

What is the error message (if any)?

Information on your n8n setup

  • n8n version: Version 1.121.3
  • Database (default: SQLite): Postgress
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app): Docker compose
  • Operating system:

Hello @Do_Mar, welcome!

How do you use it in the HTTP node?

for example to use the proxy in the HTTP node, you need to enter the correct proxy URL format, which is:

http://USERNAME:PASSWORD@HOST:PORT

like this

So in your case for example, it should look like this:

http://<USERNAME>-dc-IT:<PASSWORD>@eu.proxy-jet.io:1010

Let me know if this helps!

4 Likes

I added http:// and now it works.

Thank you.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.