Hi,
New here - I’m creating an automation to read Google Sheet rows → run each result through Perplexity AI’s API → return result and write output to the associated row’s column in my Google sheet.
However, I’m having trouble with my HTTP Request node. It runs a few times, then gets stuck on the HTTP Request node itself and continuously runs making calls over and over eating my credits (which is why you see the stopped workflow in the image). It looks like Perplexity is returning a valid response (as far as I can tell via the Browser console), yet my loop doesn’t move to the next node. It’s acting as if it’s not receiving a request & re-requesting or something?
Below is an image of my current workflow.
hi,
in the settings of the http node, is “retry on fail” activated ?
Yes, I’ve tried to run it with it on & off, but the same issue happens. I wouldn’t think it’s falling though since it’s using my Perplexity credits and looks like it’s receiving a response in my browser console. Is that right?
what response do you get in your browser ? do you have details ?
my first idea was you were getting an error and the node was configured to retry on error. It could have explained many calls to perplexity consuming your credits.
No errors in my browser, just doesn’t move along to the next step for some reason… I tried to do different combinations of batches/wait times to make sure I’m under the limit but no matter what it’s not cooperating.
After running, it got stuck at this point and wasn’t moving along or anything (i.e. updating my spreadsheet)- just continuing to spin on the node. I also tried adding a wait between the http request and google sheet, but that didn’t do anything.
did you try the perplexity endpoint outside of n8n ?
can you share configurations of your loop and http request nodes ?
did you try with a smaller set of data ?
in perplexity response you get in logs, what is in body and headers ?
Hey Anthony, sorry for the slow response. I ended up just doing it within Python and it worked fine. It seemed the issue was n8n not moving on from the http request node to the next step for whatever reason. What configuration settings do you want to know?
I wanted to check the settings tabs to make sure everything was fine, but never mind — it’s good to know you built it with Python.
My best guess it the timeout
issue
There is a timeout setting in Request
node. If you are using perplexty I think there are some operation will take a long time to response.
Then you should consider to set the timeout to super large.
Try to estimated how much it takes now when running python.
Then set +20% or more time in the timeout field.
It’s millisecond so 10000 means 10 seconds.