Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error 'No such team' while downloading drafts #12

Closed
ampil opened this issue Sep 24, 2024 · 2 comments
Closed

Error 'No such team' while downloading drafts #12

ampil opened this issue Sep 24, 2024 · 2 comments

Comments

@ampil
Copy link

ampil commented Sep 24, 2024

Can you please help?

I followed your instruction to retrieve draft's folder id.
I got a URL exactly as https://www.figma.com/api/folders/XXXXXXXXX/paginated_files?file_type=&sort_order=desc&sort_column=updated_at&page_size=50 and extracted XXXXXXXXX. There are 9 digits in the id.

While running npm run get-team-files XXXXXXXXX I got an error No such team XXXXXXXXX.

Previously, when I provided project id (19 digits) it worked fine and a json file generated successfully.

What might be the issue?

I am using git bash on Windows 11. npm version is 10.8.3, Node.js v20.7.0.

@alexchantastic
Copy link
Owner

Happy to help!

Since drafts are a project, you need to run get-project-files instead of get-team-files.

@ampil
Copy link
Author

ampil commented Sep 25, 2024

Thank you, that worked!
I updated Node.js next (thanks to this topic), and it worked as well.

Thank you for your help!

@ampil ampil closed this as completed Sep 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants