Skip to content

[bug] Figma {"error":true,"status":400,"message":"Invalid scopes for app","i18n":null} #1881

Description

@oagix

Executor version

1.6.7

How do you run Executor?

CLI

Operating system

macOS (Apple Silicon)

Integration involved

Figma

What happened

Trying to set up a Figma integration via OAuth2 and it errors on scopes. Personal token seems to be extremely limited & doesn't expose projects without manually giving an agent the exact team ID, so trying Oauth.

{"error":true,"status":400,"message":"Invalid scopes for app","i18n":null}

It would be helpful if there was an exact error message on what's different or should change (since the personal token path only exposes the user read scope and expires in max 6 months).

Tried having all these on from Figma Developers Apps:

Image

I noticed Executor says it needs:
current_user:read
file_comments:read
file_comments:write
file_content:read
file_dev_resources:read
file_dev_resources:write
file_metadata:read
file_versions:read
library_assets:read
library_content:read
project_metadata:read
projects:read
team_library_content:read
webhooks:read
webhooks:write

...but not sure if one of these is outdated or inaccurate. Tried without the folders permissions too which seem to not be included in the list above.

Image

Ran a quick search but I don't see that scope in Executor/Figma so I assume it's unrelated:

Image

Thanks in advance!

What you expected

For it to work.

Steps to reproduce

  1. Open Executor
  2. Set up Figma
  3. Create App
  4. Attempt to connect account
  5. RIP

Diagnostics / logs

No response

Before you submit

  • I searched the open issues for a duplicate.
  • I removed all keys, tokens, and credentials from this report.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions