How to get URL parameter or full URL of request via get when HTTP request node returns 5xx error?

Hello,

I have a question, would it be possible to obtain the url when the HTTP Request node returns an error to be handled in another flow?

Context:
I have a flow in which I get some data via get “example.com/{code}”, but the service sometimes returns error 5xx, either because it is out of service or unstable. What I would like to do is get the url parameter ({code}) or the full url “example.com/123” to handle in another flow. I’m using the “On Error” of the HTTP Request node and activating the “Continue (using error output)”.

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

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:

@hlf , you could do something like this

1 Like

@ihortom thank you very much, this was exactly what I needed, and I hadn’t even thought about looking for the n8n metadata

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