"ECONNREFUSED 1:80" error using HTML node to download PDF

Describe the problem/error/question

The HTML node produces an ECONNREFUSED 1:80 error when trying to download a pdf. It was previously working. Last week it stopped working, but re-trying the next day with no changes it successfully ran.

The HTML node is getting the PDF URL from a Notion database.

However I take the output of the expression and copy paste as a fixed variable it works fine. See screenshots below.

Using expression

Using fixed variable.

I have done the following to troubleshoot:

  • Created a new workflow
  • Used a new HTML node
  • Updated our version of N8N
  • Used a set node in between Notion and HTML node

What is the error message (if any)?

ECONNREFUSED 1:80

Information on your n8n setup

  • n8n version: 1.24.1
  • Running n8n via (Docker, npm, n8n cloud, desktop app): Cloud

It looks like your topic is missing some important information. Could you provide the following if applicable.

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

Hey @got_flat,

Do both input items have the URL set? We normally see an error like that if the URL doesn’t exist / is empty.

Hey @Jon

Thanks for the quick reply.

Not 100% what you mean by having the URL set.

But I can confirm:

  1. The URL exists and is accessible over a browser
  2. I have used the set node to create a field with the URL and still get the same error.

A few other things I have done.

  1. I wrote URL to a google sheet and noticed it was wrapped in “[”, so used json.replace to remove that before writing to sheet. I am able to click the URL from the sheet to the pdf, but still get the same error when trying to use HTML node reading from the sheet.
  2. I checked the URL in a re-direct tool and got a 403 error.

Found the error, one of the records did not have a URL.

I thought I checked this at the start, but clearly not.

1 Like

Hey @got_flat,

Thanks for letting us know, this is what I meant when I asked if both inputs items had the URL set.

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