Good morning Community,
I have an API from a vendor that has a 5-second rate limit. I am using the Download and JSON Parse tools to download the data, but I randomly get an error from the API that says "too many requests," meaning that I am calling on the API more than one time in that 5-second window. Sometimes my WF is great and downloads all of the data, and sometimes I get this error and I can't add the new data to my table. On the days I get this error, I double-check my URL is correct by pasting it into Chrome and all of the data is there. This makes me believe my tools are causing this. Has anybody dealt with this before?
Solved! Go to Solution.
Hey @Shelbey,
How any input records are going into the download tool? Is this happening when you only pass a single record? Can you disclose the vendor?
Hi @Treyson
I have one text input tool that has only one record for the columns URL and KEY. The output of my download tool looks like this:
And the output of my JSON Parse tool looks like this:
I have absolutely no idea what I can and cannot disclose here, but I don't believe this will give anything confidential up. Hopefully there is enough information there for you. I can also provide screenshots of how the tools are setup if needed.
Hi @sherbey,
Have you been able to solve the issue? I have an API that has a 300 milliseconds rate limit.
Hi @asieveking ,
I still have not been able to solve this issue. @Treyson was nice enough to share his time and make sure my tools were configured correctly. It seems that something is happening behind the scenes with Alteryx that is making the API think it's being called on twice when I'm only clicking the Run button once. It also happens on my scheduled workflows, but the log of when the workflows ran show it only ran once. And it's still completely random -- haven't been able to determine any sort of pattern of when this is happening since it happens both when scheduled and when manually ran.
@asieveking I think you might be a lifesaver! I downloaded your sample and put in my api info and everything worked the way it was supposed to 🙂 I'm going to update my WF and schedule it to run like normal and hopefully I never see that 'too many requests' error message again.
Thank you so much!
@asieveking are you still using this process? Have you been experiencing any issues? Some of my team members are saying they are starting to get the rate limit errors again and that maybe these Python tools are no longer compatible with some of the recent updates?
Hello @Shelbey - I'm encountering these issues, and was wondering if you found a solution?
Hi @Bigum
In this thread, there is a file attachment someone else sent me a while ago that uses Python tools. I've been using that process ever since it was sent to me and I haven't had any issues with the "too many requests" error ever since.