Restricted Folders break API calls

,

Hey y’all!
I have a regular maintenance API that I run a few times a week to help keep track of holes in our metadata. We recently added some restricted folders to our space, and now whenever my batch calls hit those folders, I get internal server 500 errors.

Any suggestions on how to get around this?

hi @Damon ca you give me an example of the API calls you are using and the responses you get? You can DM me if it’s sensitive information

1 Like

Hey Charlie!

I did some further testing and found it’s actually an issue with the endpoint itself. it just happened to only trigger on my only restricted folder in that project.

The endpoint is List folder children: https://api.frame.io/v4/accounts/:account_id/folders/:folder_id/children**
**
The pagination seems to break after 125 items is reached. (found by changing the page size to smaller increments.

After it hits that number, I get 500 internal server error on the next call made. This happens where it’s my 2nd call (pagesize=100) or 126th call (pagesize=1)

Hey @CharlieAnderson I tested this again today to check for changes, and found that it now crashes once item 123 is hit.

Any idea what might be going on here?

hi @Damon I am not sure what the issue might be, I have posted your issue to our dev team and am waiting to hear back

Hey @CharlieAnderson

I did some more testing on this and found that it’s not a limit on all folders, and is only happening consistently to one folder.

That folder is restricted, and contains versions as well as assets.

The weird thing is that while I was testing it yesterday, the amount of items I was able to pull from that folder dropped considerably, now I get internal server errors once I hit item 3. So pagination works with page_size set to 1, but only for the first page, when I try going to page 3 the error appears.

hi @Damon thanks for providing more info. I’ve relayed your info to our dev team. I’ll respond when I have more feedback or follow up questions!

hi @Damon our dev team was unable to reproduce the crashing and errors that you reported. Is there additional information you could provide? If easier you can prov ide a screen recording and DM me to keep it private or you can provide it to Becca on our IS team since I know you are talking with her as well.