Hi all,
I’ve been exploring n8n for use at a social science research cooperative I belong to, and it has been an absolute blast. My sincere thanks to everyone involved with such a great tool!
Getting set up, I’ve run into a problem with the HTTP Request node. I’m sending a POST request to an endpoint, but HTTP Request is not following the 302 redirect that comes back (despite followRedirect: true
). As a consequence, the node is reporting a failure. I’m not quite sure where the issue lies, but if anyone has any suggestions they would be much appreciated.
For reference, here is both the node and the http response:
n8n node:
sample response:
[
{
"response": "<!DOCTYPE html> <html> <head> <meta charset="UTF-8" /> <meta http-equiv="refresh" content="0;url='/form/message'" /> <title>Redirecting to /form/message</title> </head> <body> Redirecting to <a href="/form/message">/form/message</a>. </body> </html>",
"headers": {
"date": "Sun, 11 Jul 2021 15:12:37 GMT",
"content-type": "text/html; charset=UTF-8",
"transfer-encoding": "chunked",
"connection": "close",
"cache-control": "max-age=0, must-revalidate, private",
"location": "/form/message",
"expires": "Sun, 11 Jul 2021 15:12:37 GMT",
"cf-cache-status": "DYNAMIC",
"expect-ct": "max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"",
"report-to": "{"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v2?s=9Tsr3WwdyofT%2B4SMyDpIdUPc5Vyje3JSxYIoDJtDEV%2F1y%2B7yYmXQ1Trp3GM6IzDvgROfu%2BhN%2FYdsRmrNJcwbXxF7bCigou6h0Pl2e3mz8b4tVEMpHqtVGTJnJV9rE%2FbQOfwD0MJAxjQ%3D"}],"group":"cf-nel","max_age":604800}",
"nel": "{"report_to":"cf-nel","max_age":604800}",
"server": "cloudflare",
"cf-ray": "66d2f89b7b772f46-SIN",
"alt-svc": "h3-27=":443"; ma=86400, h3-28=":443"; ma=86400, h3-29=":443"; ma=86400, h3=":443"; ma=86400"
},
"statusCode": 302,
"statusMessage": "Found"
}
]