Describe the issue/error/question
After a lot of back and forth I managed to make my API pagination work. I finally had to add a code node to create a variable where I store the value, but ideally I wanted to streamline the flow and avoid the code node.
However, if I do that, the same expression in the HTTP node runs (I think) for every existing item, which triggers an 429 response of too many attempts. Is this expected behaviour? Or is there a way so it runs only once? The value I’m pulling is constant for the entire response, it doesn’t change per item (thanks to the first() ).
What is the error message (if any)?
{"status":"rejected","reason":{"message":"429 - \"<html>\\r\\n<head><title>429 Too Many Requests</title></head>\\r\\n<body>\\r\\n<center><h1>429 Too Many Requests</h1></center>\\r\\n<hr><center>nginx</center>\\r\\n</body>\\r\\n</html>\\r\\n\"","name":"Error","stack":"Error: 429 - \"<html>\\r\\n<head><title>429 Too Many Requests</title></head>\\r\\n<body>\\r\\n<center><h1>429 Too Many Requests</h1></center>\\r\\n<hr><center>nginx</center>\\r\\n</body>\\r\\n</html>\\r\\n\"\n at createError (/usr/local/lib/node_modules/n8n/node_modules/axios/lib/core/createError.js:16:15)\n at settle (/usr/local/lib/node_modules/n8n/node_modules/axios/lib/core/settle.js:17:12)\n at IncomingMessage.handleStreamEnd (/usr/local/lib/node_modules/n8n/node_modules/axios/lib/adapters/http.js:269:11)\n at IncomingMessage.emit (node:events:525:35)\n at IncomingMessage.emit (node:domain:489:12)\n at endReadableNT (node:internal/streams/readable:1358:12)\n at processTicksAndRejections (node:internal/process/task_queues:83:21)"}}