DWilliames / google-sheets-sync-figma

82 stars 8 forks source link

Image: "Error Fetching Image" when scraping images from URL #180

Closed tsekiguchi closed 1 year ago

tsekiguchi commented 1 year ago

Describe the bug When importing into Figma, images are no longer being pulled in, and instead I'm receiving a "Error Fetching Image". These URL's were working yesterday, but now it is giving me an error message when pulling in.

To Reproduce Screen Recording

Expected behavior Import images like normal

Additional context Add any other context about the problem here.

Owenb888 commented 1 year ago

Yes can confirm I am now having the same issue!

Owenb888 commented 1 year ago

@DWilliames

tomimorigui commented 1 year ago

Yes, I have the same problem, It started yesterday!

lderossi commented 1 year ago

The issue is caused by a proxy server image requests go through to deal with cors headers.

The server is no longer available (figma-cors-anywhere.fly.dev). From the look of it, it's an instance of the cors-anywhere project (https://github.com/Rob--W/cors-anywhere) which is relatively simple to set up.

@DWilliames could we get a setting in the plugin to define our own proxy if this one is not going to come back online (or open source the plugin so we can change it in there)?

DWilliames commented 1 year ago

Sorry everyone! I just looked into and found that somehow there were some weird unsupported characters in a URL that was used, and it broke the server entirely. 😢 I've made some changes to make it more resilient and timeout after 10 seconds too, so a slow website won't cause the whole server to hang.

Try it now! As far as I can tell it looks to be working now. :)