JSON-to-Figma icon indicating copy to clipboard operation
JSON-to-Figma copied to clipboard

Cannot communicate to server. Images, and "copy from clipboard link" are erroring.

Open damirkotoric opened this issue 2 years ago • 6 comments

The following console error happens when I try to populate an image:

CleanShot 2022-12-13 at 19 12 50@2x

Here's my JSON file: CleanShot 2022-12-13 at 19 15 51@2x

Both the layer name and JSON key are identical. (I've tried changing both to a different label, and the same problem persists). The image downloads if I paste the image URL in the browser. I tried closing and opening Figma again. I'm using Figma Desktop App version 116.5.18 on Mac.

Am I the only one experiencing this problem?

damirkotoric avatar Dec 13 '22 12:12 damirkotoric

I also found that the "From Clipboard Link" results in an error as well:

CleanShot 2022-12-13 at 19 22 12@2x CleanShot 2022-12-13 at 19 33 26@2x

damirkotoric avatar Dec 13 '22 12:12 damirkotoric

@PavelLaptev do you have this same problem with the latest version of Figma, or is that just me?

damirkotoric avatar Dec 14 '22 04:12 damirkotoric

@damirkotoric it's a heroku's server issue. I'm using Heroku to pass the CORS blocker. I'll check how I can solve the problem

PavelLaptev avatar Dec 14 '22 08:12 PavelLaptev

@damirkotoric done. Should work now

PavelLaptev avatar Dec 16 '22 00:12 PavelLaptev

@PavelLaptev works for JPGs and PNGs, but not for webP images

damirkotoric avatar Dec 16 '22 04:12 damirkotoric

@damirkotoric done. Should work now

PavelLaptev avatar Jan 16 '23 23:01 PavelLaptev