Background: I'm creating some php scripts to auto-create a Podio Workspace. I need to create 1 WorkSpace, 8 Apps and roughly 150 fields. So that is 159 calls that will be made to the Api in order to create all the apps and fields. I'm sure I could throw some of the Field create scripts into the App create Call to limit my total calls but that isn't the strange problem I'm having.
Issue: I've got everything working great if I run everything one at a time. Now if I start adding the Api calls to one php script, I can run up to 70 api calls and have no issues. As soon as I add the 71st call to the script I start having problems. Let me see if I can explain what is happening...It seems as once the 71st call gets reached, the script starts over again (creating a new workspace, 8 apps and 61 fields). Then it will do it again and again until I seem to hit my rate limit. I take a look at my Workspace Manager and I'll see 7+ workspaces created, each with all the apps and fields.
I look at the Log file and there is no error message. I just see the 70th api call get executed with code 200 and then it jumps back to the very first api call that creates the workspace and starts all over again.
Also it doesn't matter what call I have as the 71st one, so I can't say that it's one particular thing that is causing this.
I don't have any loops in my script where it might cause a reset. It's almost as if after the 70th call the php page just reloads and starts over again. I'm fairly new to php so I wonder if this is a php thing.
Any help would be appreciated because I'm lost here!
Please sign in to leave a comment.