# Dynamic URL from Google Sheets not working in HTTP Request node

**URL:** <https://community.n8n.io/t/dynamic-url-from-google-sheets-not-working-in-http-request-node/95602>\
**Category:** Questions\
**Tags:** data-transformation, node, http-request\
**Created:** [April 1, 2025, 4:56pm UTC](https://community.n8n.io/t/dynamic-url-from-google-sheets-not-working-in-http-request-node/95602 "2025-04-01T16:56:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jan\_Grouzer](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jan_grouzer/32/69689_2.png) [@Jan\_Grouzer](https://community.n8n.io/u/Jan_Grouzer)\
**Post date:** [April 1, 2025, 4:56pm UTC](https://community.n8n.io/t/dynamic-url-from-google-sheets-not-working-in-http-request-node/95602/1 "2025-04-01T16:56:57Z")

</div>

I’m trying to use a URL from a Google Sheets row in an HTTP Request node. The Google Sheets node successfully retrieves the URL (`strona` column), but when I use `{{ $json.strona }}` in the HTTP Request node, I get an **“Invalid URL”** error.

However, if I manually replace `{{ $json.strona }}` with the actual URL, the request works perfectly.

I have checked:  
✅ The value in `strona` contains a valid URL (starts with `http://` or `https://`).  
✅ There are no extra spaces in the Google Sheets data.  
✅ Using `{{ $json["strona"] }}` or `{{ $node["Google Sheets"].json["strona"] }}` also doesn’t work.  
✅ Using `String($json.strona).trim()` or `encodeURI($json.strona)` doesn’t help.  
✅ Hardcoding the URL in the HTTP Request node works fine.

Does anyone know why `n8n` is failing to resolve the variable correctly?

**n8n Version:** 1.85.4 (Self-hosted)  
**Node Type:** HTTP Request`

---

<div class="post-metadata">

**Author:** ![Olek](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/olek/32/59619_2.png) [@Olek](https://community.n8n.io/u/Olek)\
**Post date:** [April 1, 2025, 5:04pm UTC](https://community.n8n.io/t/dynamic-url-from-google-sheets-not-working-in-http-request-node/95602/2 "2025-04-01T17:04:04Z")

</div>

This

 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/b/c/bca85cb37a94bf5957e44134e19e888eed887c62.png)  
means that there is no data in the doc and sheet you refer to available to n8n

Try using doc and sheet IDs rather than picking from the list.

If this resolves your issue, please mark this post as a ✅ Solution.

If you still have issue not fixed, please reporst the workflow with some data in Google Sheets node pinned.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/system/32/195824_2.png) [@system](https://community.n8n.io/u/system)\
**Post date:** [June 30, 2025, 5:04pm UTC](https://community.n8n.io/t/dynamic-url-from-google-sheets-not-working-in-http-request-node/95602/3 "2025-06-30T17:04:16Z")

</div>

Closed on June 30, 2025, 5:04pm UTC

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