PavelLaptev / JSON-to-Figma

An easy way to populate Figma layers with JSON
MIT License
142 stars 40 forks source link

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

Open damirkotoric opened 1 year ago

damirkotoric commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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

PavelLaptev commented 1 year ago

@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 commented 1 year ago

@damirkotoric done. Should work now

damirkotoric commented 1 year ago

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

PavelLaptev commented 1 year ago

@damirkotoric done. Should work now