lukasoppermann / design-tokens

🎨 Figma plugin to export design tokens to json in an amazon style dictionary compatible format.
https://www.figma.com/community/plugin/888356646278934516/Design-Tokens
MIT License
964 stars 134 forks source link

Send design tokens to URL option does not work : Error 422 #287

Open shamaleyte opened 1 year ago

shamaleyte commented 1 year ago

I am not able to connect the plugin to a Github repo that I forked from https://github.com/lukasoppermann/design-token-transformer.

On the Figma side ;

Seeing the following error in console.log of Figma;

   POST https://api.github.com/repos/shamaleyte/design-token-transformer/dispatches 422 (Unprocessable Content)

Getting this error : https://share.cleanshot.com/cqRwnlf1. With this kind of parameter list : https://share.cleanshot.com/9tqWMwqN

While my request works in Postman and the workflow ( action ) runs without any problem https://share.cleanshot.com/mq5GgNYv

Any ideas?

it is the log of the same request in Postman


{
    "message": "client_payload is too large.",
    "documentation_url": "https://docs.github.com/rest/repos/repos#create-a-repository-dispatch-event"
}

I believe the error message indicates that the payload being sent exceeds the size limit for the GitHub API's repository dispatch event.

Not sure if I can use this github integration in this case, ideas?