RedMadRobot / figma-export

Command line utility to export colors, typography, icons and images from Figma to Xcode / Android Studio project
MIT License
718 stars 114 forks source link

Error: Figma API: Render timeout, try requesting fewer or smaller images #240

Closed stodevCoding closed 1 month ago

stodevCoding commented 1 month ago

Hello, Three or four days ago I did an export that worked. And for the last two days, I've had a failure.

Using FigmaExport 0.38.0 to export images to Xcode project. 2024-05-18T15:30:50+0200 info com.redmadrobot.figma-export : Fetching images info from Figma. Please wait... 2024-05-18T15:30:51+0200 info com.redmadrobot.figma-export : Fetching PNG images for scale 1.0... 2024-05-18T15:30:52+0200 info com.redmadrobot.figma-export : Fetching PNG images for scale 2.0... 2024-05-18T15:30:53+0200 info com.redmadrobot.figma-export : Fetching PNG images for scale 3.0... Error: Figma API: Render timeout, try requesting fewer or smaller images I've tried about twenty times and checked the status of the Figma APIs, and there doesn't seem to be any issues on that side.

I take this opportunity to thank you for this great solution anyway.

subdan commented 1 month ago

Hello. It seems that you are trying to export very large image. What is the original size of the image you are trying to export?

stodevCoding commented 1 month ago

Honestly since the last successful export we added a single image in 1000x1000. ^^

subdan commented 1 month ago

It seems that Figma API has limits when exporting raster images. Try decrease size of the image.

stodevCoding commented 1 month ago

Okay, I'll try it this evening and let you know. 🙏

stodevCoding commented 1 month ago

I put a huge timeout (500) in the yaml file and it passed. Sorry for the inconvenience. And thank you again.