n8n - 💡(How to fix) Fix Connection Lost | Code 503

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Error Message

Describe the problem/error/question

What is the error message (if any)?

  • error: all

Code Example

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)
⚠️ WARNING ⚠️ If you have sensitive data in your workflow (like API keys), please remove it before sharing.
RAW_BUFFERClick to expand / collapse
<!-- Please follow the template below. Skip the questions that are not relevant to you. -->

Describe the problem/error/question

What is the error message (if any)?

503

Please share your workflow/screenshots/recording

Connection lost few mins after workflow is trig

<img width="1379" height="836" alt="Image" src="https://github.com/user-attachments/assets/f6040c6b-f115-4bc5-a5f6-2c837f627255" /> <img width="1379" height="836" alt="Image" src="https://github.com/user-attachments/assets/48fe02a3-a6cf-43fd-92cd-2d03785c0e26" />

{ "nodes": [ { "parameters": { "promptType": "define", "text": "=Today is {{$today}}. Use this week’s information from:\n\n- Tool: n8n-semiconductor intelligence, \n- Tool: Finance info, and\n- QQQ/SPY price sub-workflow (last 5 trading days).\n\nThe current calendar week number is {{ $now.weekNumber }}.\n\n[Substack data for last 7 days from {{ $now.minus({ days: 7 }).toISO() }} till {{ $today.toISODate() }}] - TOOL (filter on "date" column of n8n-semiconductor)\n\n[QQQ and SPY price data] - TOOL (QQQ/SPY price)\n\nYour tasks:\n\n1. Market outlook and sentiment\n- In 2–4 sentences, describe the overall market outlook and sentiment for week {{ $now.weekNumber }} based only on the semiconductor intelligence data and the behaviour of QQQ and SPY.\n- Explicitly mention “week {{ $now.weekNumber }}”.\n- Quote the latest closing price of SPY and QQQ from the price data, exactly as:\n - SPY last close: <value from input>\n - QQQ last close: <value from input>\n\n2. Stock-by-stock summary\n- From the semiconductor intelligence data, extract a deduplicated list of stocks/tickers mentioned.\n- For each stock, output a short block with:\n - Name / ticker (as given in the input; if unclear, say “ticker not provided”).\n - Intelligence sentiment this week: label as bullish / bearish / mixed/neutral / not specified, and explain in 1–2 sentences using the Substack text.\n - 2–4 bullet points of key information from semiconductor intelligence (industrial insight, catalysts/risks, valuation comments, trading ideas, name of sender).\n - Current price, search for current price from Tool: Finance Info\n - Valuation view from intelligence (cheap / fair / expensive / not specified), using only what is written in the input.\n - Finance metrics from Perplexity (P/E, Forward P/E, PEG, P/S etc), search for financial metrics from Tool: Finance Info\n - Trading strategy / entry or exit levels only if they are explicitly in the input; otherwise say “no explicit levels provided in this week’s data”.\n - Watchlist (Add / Exist / Remove), go through Tool: Watchlist and advise your recommended action as per this weekly summary\n\nDo NOT:\n- Mention any tools or workflows in your answer.\n\n\nOutput format (Markdown):\n\n## Market outlook and sentiment\n\n[2–4 sentences]\n\n## Stock-by-stock summary\n\n### TICKER / Name\n- Substack sentiment: ...\n- Key information:\n - ...\n - ...\n- Current price:...\n- Valuation view from substack: ...\n- Finance Metrics from Perplexity:...\n- Trading strategy / entry/exit: ...\n- Watchlist: ...\n\n(Repeat the stock block for each stock.)\n", "options": { "systemMessage": "=You are an AI experienced equity analyst specialising in technology and growth stocks.\nYour task is to produce a concise, actionable weekly market and sector note for an informed investor.\n\nYou receive two structured inputs (as JSON):\n\nIndustrial intelligence from Tool: n8n-semiconductor for last 2 week.\n\nCurrent price and financial metrics from Tool: Finance Info\n\nQQQ and SPY prices for the last 5 trading days.\n\nUse only information present in these inputs.\nDo not fetch or assume any other data (except from Tool).\nIf something is missing, explicitly say that it is “not provided in the input” or search from Tool: Finance Info\n\nWrite as if you are sending a short weekly note." } }, "type": "@n8n/n8n-nodes-langchain.agent", "typeVersion": 2.2, "position": [ 592, -80 ], "id": "4548a43b-29b0-4a15-a2b5-b1d49689815a", "name": "AI Agent" }, { "parameters": { "sendTo": "[email protected]", "subject": "= CW{{ $now.weekNumber }}- Weekly Semiconductor Intelligence (Substack)", "message": "= CW{{ $now.weekNumber }} - {{ $json.data }}", "options": {} }, "type": "n8n-nodes-base.gmail", "typeVersion": 2.1, "position": [ 1136, -80 ], "id": "3bbca2bd-8a62-4f77-aff3-b91d95295676", "name": "Send a message", "webhookId": "87a82adb-4096-410d-9a73-f9e571245b89", "credentials": { "gmailOAuth2": { "id": "CiQMW7wfGrIPLZBh", "name": "Gmail account 2" } } }, { "parameters": { "mode": "markdownToHtml", "markdown": "={{ $json.output }}", "options": {} }, "type": "n8n-nodes-base.markdown", "typeVersion": 1, "position": [ 928, -80 ], "id": "9f913c42-f234-4b86-9436-45b3e14c750a", "name": "Markdown" }, { "parameters": { "rule": { "interval": [ { "field": "weeks", "triggerAtDay": [ 6 ], "triggerAtHour": 4 } ] } }, "type": "n8n-nodes-base.scheduleTrigger", "typeVersion": 1.2, "position": [ 320, -80 ], "id": "2ae779ef-1a1e-4af8-99df-92c8a02bed42", "name": "Schedule Trigger" }, { "parameters": { "workflowId": { "__rl": true, "value": "f288xVAVmTZ2OR4O", "mode": "list", "cachedResultUrl": "/workflow/f288xVAVmTZ2OR4O", "cachedResultName": "AI - Weekly Semiconductor Intelligence" }, "workflowInputs": { "mappingMode": "defineBelow", "value": {}, "matchingColumns": [], "schema": [], "attemptToConvertTypes": false, "convertFieldsToString": false } }, "type": "@n8n/n8n-nodes-langchain.toolWorkflow", "typeVersion": 2.2, "position": [ 656, 176 ], "id": "377cd4cc-e21e-4893-b65d-d758c3201549", "name": "QQQ/SPY price" }, { "parameters": { "options": {} }, "type": "n8n-nodes-base.dateTimeTool", "typeVersion": 2, "position": [ 928, 176 ], "id": "8dda3f0f-5a02-465e-9fbf-1b0bc5172ff6", "name": "Date & Time" }, { "parameters": { "model": "sonar-reasoning-pro", "messages": { "message": [ { "content": "=You are a financial analyst. Your job is to provide current price and finance metrics of all stocks mentioned to AI experienced equity analyst", "role": "system" }, { "content": "={{ /n8n-auto-generated-fromAI-override/ $fromAI('message1_Text', provide current price and finance metrics of all stocks mentioned, 'string') }}" } ] }, "options": {}, "requestOptions": {} }, "type": "n8n-nodes-base.perplexityTool", "typeVersion": 1, "position": [ 800, 176 ], "id": "5ca0ee49-512c-4fa9-806c-a6806b0c0b7e", "name": "Finance Info", "credentials": { "perplexityApi": { "id": "OOTATQcmtwV5zyE8", "name": "Perplexity account" } } }, { "parameters": { "documentId": { "__rl": true, "value": "1joHgJ08Kz6zMKHrhpo5_Y9mozyIYbTVc6mkdr6VItYc", "mode": "list", "cachedResultName": "n8n-AI-portifolio-manager", "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1joHgJ08Kz6zMKHrhpo5_Y9mozyIYbTVc6mkdr6VItYc/edit?usp=drivesdk" }, "sheetName": { "__rl": true, "value": "gid=0", "mode": "list", "cachedResultName": "watchlist", "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1joHgJ08Kz6zMKHrhpo5_Y9mozyIYbTVc6mkdr6VItYc/edit#gid=0" }, "options": {} }, "type": "n8n-nodes-base.googleSheetsTool", "typeVersion": 4.7, "position": [ 1040, 176 ], "id": "1640f6a6-8883-44f9-b6a5-b0157012f035", "name": "Watchlist", "credentials": { "googleSheetsOAuth2Api": { "id": "uXkM74HndDOKWXip", "name": "Google Sheets account 2" } } }, { "parameters": { "model": "grok-4.20-0309-reasoning", "options": {} }, "type": "@n8n/n8n-nodes-langchain.lmChatXAiGrok", "typeVersion": 1, "position": [ 400, 176 ], "id": "33cb0dde-d728-429d-96a6-049e51c595ac", "name": "xAI Grok Chat Model", "credentials": { "xAiApi": { "id": "d9Nu0JnSpIldbIfB", "name": "xAi account 2" } } }, { "parameters": { "descriptionType": "manual", "toolDescription": "=Get many rows in Supabase in date column from {{ $now.minus({ days: 7 }).toISO() }} till {{ $today.toISODate() }}", "operation": "getAll", "tableId": "n8n-semiconductor", "returnAll": true, "filterType": "none" }, "type": "n8n-nodes-base.supabaseTool", "typeVersion": 1, "position": [ 1216, 176 ], "id": "214fd8e8-67bd-44df-940d-790eb05821ba", "name": "n8n-semiconductor intelligence", "credentials": { "supabaseApi": { "id": "WU8u1Mf10su8BQoV", "name": "Supabase account" } } } ], "connections": { "AI Agent": { "main": [ [ { "node": "Markdown", "type": "main", "index": 0 } ] ] }, "Markdown": { "main": [ [ { "node": "Send a message", "type": "main", "index": 0 } ] ] }, "Schedule Trigger": { "main": [ [ { "node": "AI Agent", "type": "main", "index": 0 } ] ] }, "QQQ/SPY price": { "ai_tool": [ [ { "node": "AI Agent", "type": "ai_tool", "index": 0 } ] ] }, "Date & Time": { "ai_tool": [ [ { "node": "AI Agent", "type": "ai_tool", "index": 0 } ] ] }, "Finance Info": { "ai_tool": [ [ { "node": "AI Agent", "type": "ai_tool", "index": 0 } ] ] }, "Watchlist": { "ai_tool": [ [ { "node": "AI Agent", "type": "ai_tool", "index": 0 } ] ] }, "xAI Grok Chat Model": { "ai_languageModel": [ [ { "node": "AI Agent", "type": "ai_languageModel", "index": 0 } ] ] }, "n8n-semiconductor intelligence": { "ai_tool": [ [ { "node": "AI Agent", "type": "ai_tool", "index": 0 } ] ] } }, "pinData": {}, "meta": { "templateCredsSetupCompleted": true, "instanceId": "96fe93d885ff7b23db6a5122c54f791ea28283b7c238b2707877c641421fe806" } }

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)
⚠️ WARNING ⚠️ If you have sensitive data in your workflow (like API keys), please remove it before sharing.

Share the output returned by the last node

<!-- If you need help with data transformations, please also share your expected output. -->

Debug info

core

  • n8nVersion: 1.123.27
  • platform: docker (cloud)
  • nodeJsVersion: 24.13.1
  • nodeEnv: production
  • database: sqlite
  • executionMode: regular
  • concurrency: 5
  • license: enterprise (sandbox)

storage

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

pruning

  • enabled: true
  • maxAge: 168 hours
  • maxCount: 2500 executions

client

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

Generated at: 2026-04-20T14:42:08.315Z}

extent analysis

TL;DR

The workflow is experiencing a connection loss a few minutes after it is triggered, resulting in a 503 error, and the likely fix involves adjusting the workflow's configuration or optimizing its performance to prevent timeouts.

Guidance

  1. Check workflow timeouts: Review the workflow's configuration to ensure that the timeout settings are adequate for the tasks being performed, as the connection loss might be due to the workflow exceeding its allowed execution time.
  2. Optimize node performance: Analyze the performance of each node in the workflow, especially those that interact with external services like Supabase or Perplexity, to identify potential bottlenecks that could be causing the connection loss.
  3. Verify external service limits: Confirm that the external services used by the workflow (e.g., Supabase, Perplexity) are not imposing rate limits or experiencing downtime that could lead to connection losses.
  4. Review concurrency settings: Given that the workflow is set to run with a concurrency of 5, assess whether this setting is appropriate for the current workload and adjust it if necessary to prevent overloading the system.

Example

No specific code example is provided due to the complexity and specificity of the workflow configuration. However, users should focus on optimizing the performance of nodes like "n8n-semiconductor intelligence" or "Finance Info" by potentially caching results, reducing the amount of data transferred, or implementing more efficient query methods.

Notes

  • The provided information does not specify the exact cause of the 503 error, so these suggestions are based on common issues that could lead to connection losses in workflows.
  • It's crucial to monitor the workflow's performance and adjust settings based on actual usage patterns and system capabilities.

Recommendation

Apply a workaround by optimizing the workflow's performance and adjusting its configuration to better handle the current workload, as the root cause of the issue seems related to the workflow's execution time or external service interactions.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

n8n - 💡(How to fix) Fix Connection Lost | Code 503