design-token-transformer icon indicating copy to clipboard operation
design-token-transformer copied to clipboard

422 Error sending tokens to url

Open nedzen opened this issue 1 year ago • 3 comments

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 avatar Aug 15 '23 13:08 nedzen

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

nedzen avatar Aug 18 '23 13:08 nedzen

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.

lukasoppermann avatar Aug 18 '23 18:08 lukasoppermann

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

rpgraffi avatar Sep 26 '23 09:09 rpgraffi