lukasoppermann / design-token-transformer

Base repo to transform json design tokens from the figma design token plugin via amazon style dictionary.
MIT License
151 stars 228 forks source link

422 Error sending tokens to url #49

Open nedzen opened 1 year ago

nedzen commented 1 year ago

I want to use the "Send design tokens to url" feature to export the variables, color, text styles and effects from my figma file. When I check "variables" I get a 422 error: image 1

image

If I uncheck the "variables (beta)" option everything works fine. The JSON file download works fine too, only issue is when I try to export it. I have recreated a separate figma file with similar variable config and to my surprise the "Send design tokens to url" feature works fine. I suspect there is some issue with my file or variables that I have in this file. design-tokensjson.txt

I am attaching the downloaded json.

Any idea how I can begin to debug this ? "the console doesn't provide any useful info to begin debugging this" failed to load resource: the server responded with a status of 422 ()

nedzen commented 1 year ago

@lukasoppermann Should I post this on the plugin repo instead ?

lukasoppermann commented 1 year ago

Well, are you using any transformers that may fail? Do you have any logs on your server?

It is probably because some script you run on the server can't deal with variables.

rpgraffi commented 1 year ago

I have the same issue with a clean copy of your repo