# \#javascript

**URL:** https://community.n8n.io/tag/javascript/69.md

[Latest](https://community.n8n.io/latest.md) · [Categories](https://community.n8n.io/categories.md) · [Tags](https://community.n8n.io/tags.md)

---

## [Pipedream → n8n: what converts cleanly, what breaks, and a free report for your export](https://community.n8n.io/t/pipedream-n8n-what-converts-cleanly-what-breaks-and-a-free-report-for-your-export/321405)

<div class="topic-metadata">

**Author:** [@masonu](https://community.n8n.io/u/masonu)\
**Replies:** 1\
**Last updated:** [October 16, 2026, 8:39pm UTC](https://community.n8n.io/t/pipedream-n8n-what-converts-cleanly-what-breaks-and-a-free-report-for-your-export/321405 "2026-10-16T20:39:09Z")

</div>

Pipedream Workflows stops running on March 31, 2027, and Pipedream deletes all workflow data, including connected accounts, by April 30. I’ve been converting Pipedream workflows to n8n: 395 public ones so far (GitHub Syn…

---

## [Timeout in code node (Javascript)](https://community.n8n.io/t/timeout-in-code-node-javascript/299735)

<div class="topic-metadata">

**Author:** [@Elan\_Savan](https://community.n8n.io/u/Elan_Savan)\
**Replies:** 3\
**Last updated:** [June 18, 2026, 2:00pm UTC](https://community.n8n.io/t/timeout-in-code-node-javascript/299735 "2026-06-18T14:00:57Z")

</div>

My code node keeps timing out. But it used to work just fine. I dont think its very complex code. here is the code: const rawDate = $input.item.json.Date; const rawTime = $input.item.json.Current\_Time; const parts = …

---

## [Best approach for AI-powered content-aware cropping of 7000+ wallpaper images?](https://community.n8n.io/t/best-approach-for-ai-powered-content-aware-cropping-of-7000-wallpaper-images/292949)

<div class="topic-metadata">

**Author:** [@Alessio\_Jeshili](https://community.n8n.io/u/Alessio_Jeshili)\
**Replies:** 2\
**Last updated:** [June 9, 2026, 2:50pm UTC](https://community.n8n.io/t/best-approach-for-ai-powered-content-aware-cropping-of-7000-wallpaper-images/292949 "2026-06-09T14:50:11Z")

</div>

I’m building an automated workflow to intelligently crop decorative wallpaper images based on customer wall dimensions (width × height in cm). The catalog has 7000+ images with very different subjects (flowers, leaves, g…

---

## [N8n stable 2.15 - Code node http requests error, Code node code display not fitting screen properly](https://community.n8n.io/t/n8n-stable-2-15-code-node-http-requests-error-code-node-code-display-not-fitting-screen-properly/286215)

<div class="topic-metadata">

**Author:** [@Ben\_Crider](https://community.n8n.io/u/Ben_Crider)\
**Replies:** 2\
**Last updated:** [April 10, 2026, 6:26pm UTC](https://community.n8n.io/t/n8n-stable-2-15-code-node-http-requests-error-code-node-code-display-not-fitting-screen-properly/286215 "2026-04-10T18:26:44Z")

</div>

Describe the problem/error/question This is a self-hosted version. I am having two issues, one of which I found a workaround for but wanted to make others aware. The code node since moving to 2.0+ doesn’t like to perfo…

---

## [Check availability workflow - collision detection ignoring active vs passive time](https://community.n8n.io/t/check-availability-workflow-collision-detection-ignoring-active-vs-passive-time/278951)

<div class="topic-metadata">

**Author:** [@mistii](https://community.n8n.io/u/mistii)\
**Replies:** 2\
**Last updated:** [March 19, 2026, 4:16pm UTC](https://community.n8n.io/t/check-availability-workflow-collision-detection-ignoring-active-vs-passive-time/278951 "2026-03-19T16:16:15Z")

</div>

Describe the problem: Building hair salon booking system with Retell AI voice agent + n8n + Google Calendar. AI Agent is blocking entire event duration instead of only the active time window, making collision detection …

---

## [FitCoreAI: AI-Powered Fitness/nutration Plan PDF Generator n8n × Django × Streamlit × DRF × pdfkit](https://community.n8n.io/t/fitcoreai-ai-powered-fitness-nutration-plan-pdf-generator-n8n-x-django-x-streamlit-x-drf-x-pdfkit/113605)

<div class="topic-metadata">

**Author:** [@Shadi](https://community.n8n.io/u/Shadi)\
**Replies:** 2\
**Last updated:** [January 19, 2026, 4:19pm UTC](https://community.n8n.io/t/fitcoreai-ai-powered-fitness-nutration-plan-pdf-generator-n8n-x-django-x-streamlit-x-drf-x-pdfkit/113605 "2026-01-19T16:19:22Z")

</div>

What is FitCoreAI? FitCoreAI is a modern, open, and flexible workflow that combines AI-driven fitness planning with instant, beautiful PDF generation— Users interact via a clean Streamlit web app, is automation using n8n…

---

## [N8N\_RUNNERS\_ENABLED=true breaks external module imports like JSDOM](https://community.n8n.io/t/n8n-runners-enabled-true-breaks-external-module-imports-like-jsdom/241877)

<div class="topic-metadata">

**Author:** [@PabloRQ](https://community.n8n.io/u/PabloRQ)\
**Replies:** 2\
**Last updated:** [January 16, 2026, 7:47pm UTC](https://community.n8n.io/t/n8n-runners-enabled-true-breaks-external-module-imports-like-jsdom/241877 "2026-01-16T19:47:10Z")

</div>

Describe the problem/error/question I am encountering issues when using third-party external libraries (specifically jsdom) within the Code node when Task Runners are enabled. The workflow functions correctly when runne…

---

## [Js code node error](https://community.n8n.io/t/js-code-node-error/245849)

<div class="topic-metadata">

**Author:** [@Edmunds\_Priede](https://community.n8n.io/u/Edmunds_Priede)\
**Replies:** 7\
**Last updated:** [January 6, 2026, 1:46pm UTC](https://community.n8n.io/t/js-code-node-error/245849 "2026-01-06T13:46:15Z")

</div>

selfhosted Version 2.1.2 on VPS after upgrade to V2 code node stopped working (was working fine ) Node execution failed This can happen for various reasons. Please try executing the node again. If the problem persist…

---

## [Help Needed: Extracting Real News Titles from Google Alerts HTML in n8n](https://community.n8n.io/t/help-needed-extracting-real-news-titles-from-google-alerts-html-in-n8n/236133)

<div class="topic-metadata">

**Author:** [@agencianoticiasprime](https://community.n8n.io/u/agencianoticiasprime)\
**Replies:** 1\
**Last updated:** [December 15, 2025, 12:43pm UTC](https://community.n8n.io/t/help-needed-extracting-real-news-titles-from-google-alerts-html-in-n8n/236133 "2025-12-15T12:43:34Z")

</div>

\# 🆘 Help Needed: Extracting Real News Titles from Google Alerts HTML in n8n ## About the Project I'm building an automated news aggregation system for \*\*ANPILAC\*\* (News Agency on Early Childhood Education in Latin Amer…

---

## [Unable to run Javascript node](https://community.n8n.io/t/unable-to-run-javascript-node/227949)

<div class="topic-metadata">

**Author:** [@lexpert\_lex](https://community.n8n.io/u/lexpert_lex)\
**Replies:** 2\
**Last updated:** [November 28, 2025, 1:10pm UTC](https://community.n8n.io/t/unable-to-run-javascript-node/227949 "2025-11-28T13:10:49Z")

</div>

Hey, my worflow was working perfectly and today, my workflow is unable to run any Javascript node… I have an infinite loop without any error… Does anyone have the same problem?

---

## [Problem: Custom Tool (JavaScript) Not Interpreting JSON Availability Data Correctly — Always Returns ok:false](https://community.n8n.io/t/problem-custom-tool-javascript-not-interpreting-json-availability-data-correctly-always-returns-ok-false/226811)

<div class="topic-metadata">

**Author:** [@ElCoRdobEs](https://community.n8n.io/u/ElCoRdobEs)\
**Replies:** 4\
**Last updated:** [November 27, 2025, 8:54am UTC](https://community.n8n.io/t/problem-custom-tool-javascript-not-interpreting-json-availability-data-correctly-always-returns-ok-false/226811 "2025-11-27T08:54:04Z")

</div>

Hi everyone, I’m building an n8n workflow where an AI Agent must call a custom JavaScript tool (AvailabilitySlotsParserTool). This tool receives as input a stringified JSON with real availability data coming from Seven…

---

## [Binary files - filter by size](https://community.n8n.io/t/binary-files-filter-by-size/15437)

<div class="topic-metadata">

**Author:** [@one\_juru](https://community.n8n.io/u/one_juru)\
**Replies:** 7\
**Last updated:** [May 8, 2025, 10:40am UTC](https://community.n8n.io/t/binary-files-filter-by-size/15437 "2025-05-08T10:40:44Z")

</div>

Hello, If been wondering if there’s an easy way to filter binary files based on their size. I’m currently building something like an “archive” for a gmail account, and upload all attachments to Google Drive. Since ther…

---

## [Need help with JavaScript in code block](https://community.n8n.io/t/need-help-with-javascript-in-code-block/105997)

<div class="topic-metadata">

**Author:** [@Matvey\_Zhukov](https://community.n8n.io/u/Matvey_Zhukov)\
**Replies:** 2\
**Last updated:** [April 26, 2025, 9:48am UTC](https://community.n8n.io/t/need-help-with-javascript-in-code-block/105997 "2025-04-26T09:48:15Z")

</div>

Hey everyone! I’m trying to replicate this pretty simple automation from make. It is aimed to extract product data in airtable, create a JSON for EACH product to then pass to HTTP module to upload each product …

---

## [Delayed Input in Embedded Chat using @n8n/chat](https://community.n8n.io/t/delayed-input-in-embedded-chat-using-n8n-chat/87922)

<div class="topic-metadata">

**Author:** [@Damian\_Stetson](https://community.n8n.io/u/Damian_Stetson)\
**Replies:** 3\
**Last updated:** [April 11, 2025, 9:58am UTC](https://community.n8n.io/t/delayed-input-in-embedded-chat-using-n8n-chat/87922 "2025-04-11T09:58:44Z")

</div>

Hi everyone, I’m experiencing a delay in the render of the input chat field when using the @n8n/chat package in an embedded chat. It seems that the delay is caused by the loadPreviousSession fetch action, which takes so…

---

## [Code to remove null values from data](https://community.n8n.io/t/code-to-remove-null-values-from-data/98942)

<div class="topic-metadata">

**Author:** [@jeepinjeff](https://community.n8n.io/u/jeepinjeff)\
**Replies:** 3\
**Last updated:** [April 9, 2025, 11:26am UTC](https://community.n8n.io/t/code-to-remove-null-values-from-data/98942 "2025-04-09T11:26:14Z")

</div>

I’m running self-hosted n8n via docker and trying to delete the null values from the input data. I searched the forum and found this, but for the life of me, I can’t get it to work without throwing an error. for (const …

---

## [Don't override google sheets cell if output cell is empty](https://community.n8n.io/t/dont-override-google-sheets-cell-if-output-cell-is-empty/92997)

<div class="topic-metadata">

**Author:** [@tom\_firearc](https://community.n8n.io/u/tom_firearc)\
**Replies:** 3\
**Last updated:** [March 26, 2025, 11:30am UTC](https://community.n8n.io/t/dont-override-google-sheets-cell-if-output-cell-is-empty/92997 "2025-03-26T11:30:51Z")

</div>

Describe the problem/error/question We have a flow that grabs information from a database and populates a google sheets page. Some of the output fields can be empty. In that case, we don’t want to override the sheets cel…

---

## [Sending js file to chat model](https://community.n8n.io/t/sending-js-file-to-chat-model/86134)

<div class="topic-metadata">

**Author:** [@Taukir\_Sheikh](https://community.n8n.io/u/Taukir_Sheikh)\
**Replies:** 3\
**Last updated:** [March 10, 2025, 10:52am UTC](https://community.n8n.io/t/sending-js-file-to-chat-model/86134 "2025-03-10T10:52:39Z")

</div>

how to send the js file to chat model

---

## [Add JSON escape expression](https://community.n8n.io/t/add-json-escape-expression/61270)

<div class="topic-metadata">

**Author:** [@n8-builder-dude](https://community.n8n.io/u/n8-builder-dude)\
**Replies:** 4\
**Last updated:** [March 7, 2025, 9:09pm UTC](https://community.n8n.io/t/add-json-escape-expression/61270 "2025-03-07T21:09:57Z")

</div>

The idea is: If I try to save a very complex string in a JSON object (e.g. html document) I will often get an error JSON parameter needs to be valid JSON \[item 0\] Can you add an expression function that will escape any…

---

## [Code block: No output nor console.log](https://community.n8n.io/t/code-block-no-output-nor-console-log/77286)

<div class="topic-metadata">

**Author:** [@Nicole\_Reiter](https://community.n8n.io/u/Nicole_Reiter)\
**Replies:** 2\
**Last updated:** [February 12, 2025, 7:07pm UTC](https://community.n8n.io/t/code-block-no-output-nor-console-log/77286 "2025-02-12T19:07:13Z")

</div>

When writing javascript in a code block it does not return my value nor does it log anything in the console. Node says the workflow executed successfully, but nothing happens. Information on your n8n setup on Stag…

---

## [AI Agent and multiple js functions](https://community.n8n.io/t/ai-agent-and-multiple-js-functions/62837)

<div class="topic-metadata">

**Author:** [@milymat](https://community.n8n.io/u/milymat)\
**Replies:** 2\
**Last updated:** [December 4, 2024, 9:33am UTC](https://community.n8n.io/t/ai-agent-and-multiple-js-functions/62837 "2024-12-04T09:33:27Z")

</div>

Describe the problem/error/question Hi all, I’m testing around with an AI Agent with ollama and as tools I have 2 JS function. function 1: Will provide an ID for a specific city. function 2: will provide a fake tempe…

---

## [Problem with Formatting data](https://community.n8n.io/t/problem-with-formatting-data/62705)

<div class="topic-metadata">

**Author:** [@bystry](https://community.n8n.io/u/bystry)\
**Replies:** 4\
**Last updated:** [November 23, 2024, 8:49am UTC](https://community.n8n.io/t/problem-with-formatting-data/62705 "2024-11-23T08:49:34Z")

</div>

Hey, Im trying to convert response received from nocoDB to structure accepted by quickChart. Im trying to format data in javascript but Im getting nulls… Please can you check if you see any issues? Thank you for help! …

---

## [Error while querying with JMESPath](https://community.n8n.io/t/error-while-querying-with-jmespath/59807)

<div class="topic-metadata">

**Author:** [@Marcelo\_LikeMkt](https://community.n8n.io/u/Marcelo_LikeMkt)\
**Replies:** 2\
**Last updated:** [October 26, 2024, 7:06am UTC](https://community.n8n.io/t/error-while-querying-with-jmespath/59807 "2024-10-26T07:06:52Z")

</div>

Hello everyone! I’m having a problem while iterating through a JSON to search if a student has passed a test, and retrieving his informations to update his pontuation. I have his info on a Google Sheets, who I import hi…

---

## [Trouble running external modules in code node](https://community.n8n.io/t/trouble-running-external-modules-in-code-node/56870)

<div class="topic-metadata">

**Author:** [@rexyboy](https://community.n8n.io/u/rexyboy)\
**Replies:** 2\
**Last updated:** [October 8, 2024, 3:42am UTC](https://community.n8n.io/t/trouble-running-external-modules-in-code-node/56870 "2024-10-08T03:42:09Z")

</div>

I am trying to run the module ‘google-news-scraper’ in a code node but only managing to get network time-outs (after 3 mins) and struggling to find the source of the problem. I would appreciate anyones help in fault fin…

---

## [Parsing JSON array to extract single element](https://community.n8n.io/t/parsing-json-array-to-extract-single-element/53875)

<div class="topic-metadata">

**Author:** [@dmoore44](https://community.n8n.io/u/dmoore44)\
**Replies:** 2\
**Last updated:** [September 11, 2024, 7:18pm UTC](https://community.n8n.io/t/parsing-json-array-to-extract-single-element/53875 "2024-09-11T19:18:34Z")

</div>

I have a JSON object that contains an array that’s being returned from an API, and I want to extract only the domain element… what’s the best way to go about it. \[ { "status\_code": 200, "error": null, "res…

---

## [Sum values from Expression](https://community.n8n.io/t/sum-values-from-expression/50481)

<div class="topic-metadata">

**Author:** [@jburns](https://community.n8n.io/u/jburns)\
**Replies:** 2\
**Last updated:** [July 21, 2024, 11:56am UTC](https://community.n8n.io/t/sum-values-from-expression/50481 "2024-07-21T11:56:35Z")

</div>

Hey n8n Community, Describe the problem/error/question I am looking for a solution to sum values from the Expression field of my Edit Field node. Here’s my input: \[ { "OrderId": "1234", "OrderDetails": { …

---

## [Access JSON key in Code Node function](https://community.n8n.io/t/access-json-key-in-code-node-function/47313)

<div class="topic-metadata">

**Author:** [@d8rt8v](https://community.n8n.io/u/d8rt8v)\
**Replies:** 1\
**Last updated:** [May 28, 2024, 9:11pm UTC](https://community.n8n.io/t/access-json-key-in-code-node-function/47313 "2024-05-28T21:11:25Z")

</div>

Describe the problem/error/question Hello! I made a JS code to convert my JSON: In case the URL in the elements is the same, i want to make an array from employee key for each match. I have no problem when declaring my …

---

## [Set Fields Node not pulling all data from previous nodes](https://community.n8n.io/t/set-fields-node-not-pulling-all-data-from-previous-nodes/44770)

<div class="topic-metadata">

**Author:** [@jlhsolutions](https://community.n8n.io/u/jlhsolutions)\
**Replies:** 6\
**Last updated:** [April 30, 2024, 9:58pm UTC](https://community.n8n.io/t/set-fields-node-not-pulling-all-data-from-previous-nodes/44770 "2024-04-30T21:58:25Z")

</div>

I have set up my Code Nodes to extract the pieces of information out of the email that I will need to use in my workflow. Then I created the new fields and tried to populate them with the data from the code nodes. This w…

---

## [Link Title option in Markdown to HTML node (Showdown)](https://community.n8n.io/t/link-title-option-in-markdown-to-html-node-showdown/32948)

<div class="topic-metadata">

**Author:** [@Entrepositive](https://community.n8n.io/u/Entrepositive)\
**Replies:** 1\
**Last updated:** [April 16, 2024, 6:20pm UTC](https://community.n8n.io/t/link-title-option-in-markdown-to-html-node-showdown/32948 "2024-04-16T18:20:52Z")

</div>

The idea is: Include support for the title property of the HTML \<a\> tag in Options. Perhaps an option to pull the target page’s title from the \<title\> tag. Other smart options? My use case: I have a workflow that r…

---

## [Dropbox 409 Error - Get Cursor Endpoint](https://community.n8n.io/t/dropbox-409-error-get-cursor-endpoint/40585)

<div class="topic-metadata">

**Author:** [@Prasanna\_Ptools](https://community.n8n.io/u/Prasanna_Ptools)\
**Replies:** 6\
**Last updated:** [February 21, 2024, 7:00pm UTC](https://community.n8n.io/t/dropbox-409-error-get-cursor-endpoint/40585 "2024-02-21T19:00:11Z")

</div>

Describe the problem/error/question I apologize before hand if this was already tackled, I wasn’t able to find a topic that addressed this specific issue. The problem I have is being able to get a cursor on the (‘HTTP R…

---

## [Declare variable from previous nodes](https://community.n8n.io/t/declare-variable-from-previous-nodes/40544)

<div class="topic-metadata">

**Author:** [@Hnk](https://community.n8n.io/u/Hnk)\
**Replies:** 2\
**Last updated:** [February 21, 2024, 3:45pm UTC](https://community.n8n.io/t/declare-variable-from-previous-nodes/40544 "2024-02-21T15:45:03Z")

</div>

Describe the problem/error/question Hello everyone. How do I declare a variable from a previous node? For example: I have 10 code nodes configured in JavaScript in the workflow, the second node return an array with fiv…

[Next page](https://community.n8n.io/tag/javascript/69.md?match_all_tags=true&page=1&tags%5B%5D=javascript)
