Uploading assets with fioctl

Hi,

I’m struggling a bit with ‘fioctl assets upload PARENT_ID FILE’.

If I use the folder id, I get the error:
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url:
https://api.frame.io/v2/assets/0...8/children

*redacted ROOT_ASSET_ID from URL above, not sure if that’s ok to share online?

When using the root_asset_id (listed for a Project’s sub-folder) I get the error:
File “C:…\Python\Python39\lib\site-packages\fioctl\uploader.py”, line 32, in upload
upload_urls = self.asset[‘upload_urls’]
TypeError: ‘PaginatedResponse’ object is not subscriptable

Running from Windows 10 cmd line. I can run other commands to list Teams, Projects etc and get the various id’s.

Appreciate any help,

Thanks, Kenny.

Hey Kenny,

It would actually be super helpful to get the root_asset_id, those are fine to share because our access permissions will be enforced no matter what so nobody could access your folder if they couldn’t already.

I’ll be honest, we haven’t updated fioctl in a while, so it doesn’t surprise me it’s broken. With that said, I think I know what the fix is here already.

Hey, thanks for getting back so quickly.

The root_asset_id is: baa0148e-8106-467f-8374-c165c608a35f

Cheers.

Sorry for the delay in getting back to you, I did just check in our support tool and I can see the root_asset_id you provided appears to be empty. Does that sound right?

Hi,

‘baa0148e-8106-467f-8374-c165c608a35f’ - should be a folder. It’s empty at the moment but I have uploaded to it previously by other means. I got this root_asset_id listed alongside folder details when querying a project. The id of the folder is ‘01d504e9-1641-48d6-b036-79633d8c0d88’.

… Wasn’t getting on well with fioctl so decided to look at frameioclient instead. I’ve managed to script most of what I need for a proof of concept - Create folder, upload mp4, create review link, add asset to review link.

Thanks for your time on this … I may have some frameioclient questions :smirk:

Glad to hear you’ve found a work-around in the frameioclient! In the latest build (un-released 1.3.0), I’ve been working on brining over some of the CLI so it’s installed by default when you install frameioclient.

I would recommend continuing down that path as I just don’t know when I’ll have time to work on fioctl. We sort of sunset that a while back since usage is so low.