carj / pyPreservica

Python language binding for the Preservica API
https://pypreservica.readthedocs.io
Apache License 2.0
14 stars 2 forks source link

Entity API not retrieving all folders #17

Closed SmithC172 closed 8 months ago

SmithC172 commented 8 months ago

Hi James,

I'm having trouble accessing certain folders using pyPreservica and the Entity API.

Using client.folder gives me a Reference Not Found exception, saying the reference is not found in the repository. It also provides the link it says returned a 404, but when I test the link manually, it is valid.

I've also tried getting a list of all top-level folders using the following, but I only get back a partial listing.

for entity in client.descendants():
     print(entity.title)

Is there a reason I can access some folders and not others? I can't quite discern a patten between the folders I can/can't access.

Thanks in advance! Courtney

SmithC172 commented 8 months ago

Never mind, I figured it out! (It had to do with roles I had set up for our API Service account)