thgh / Airtable-to-Figma

Figma plugin to import Airtable data into Figma components
airtable-shr.vercel.app
25 stars 7 forks source link

Blocker - Unable to load data #7

Open l-i-n-k opened 1 year ago

l-i-n-k commented 1 year ago

Dear Thomas & Airtable to Figma team, I have a critical problem towards the end of the week if this can’t be fixed =8-O

  1. Can someone confirm that this problem exists?

The plugin seems to be unable to fetch data from any Airtable source.

image

If not, I need to investigate on my side…

lifeofgurpreet commented 1 year ago

same issue here

thgh commented 1 year ago

Something has changed on the side of Airtable, it has something to do with the JSON parser for the accessPolicy, will check it later!

lifeofgurpreet commented 1 year ago

Yup. Lots of changes on their end recently to improve the tool!

l-i-n-k commented 1 year ago

Found this announcement https://support.airtable.com/docs/changes-to-airtable-attachments …but didn’t help.

thgh commented 1 year ago

This plugin scrapes the HTML from the shared view, so those changes should not affect this plugin.

grantgreene125 commented 1 year ago

Right now I'm getting this same error! Please let me know if there is anything we can do to fix!

This plug-in is amazing! And is a game-changer for design automation!

petitdekpe commented 1 year ago

Is there anything we can do to fix this issue?

l-i-n-k commented 1 year ago

My slightly complicated workaround:

  1. Create a google spreadsheet
  2. Create the column headers
  3. Copy-paste the content of the required columns over
  4. Use one of the google spreadsheet sync plugins

Pictures need a cell to create the stable download-url.

Multiple downsides. Foremost you have to prepare the proper amount of layers.

petitdekpe commented 1 year ago

I've already tried it during this week and it's obviously very complicated. I'm going to stick with it so here's to that for now.

thgh commented 1 year ago

Hey everyone, it seems that Airtable tries to hide some data if the request does not come from a browser. There are ways to work around this, so after more than a month, this issue is finally fixed!

grantgreene125 commented 1 year ago

Hi still not working for me? getting the unable to load data

grantgreene125 commented 1 year ago

How do we do the image url from google sheets?

l-i-n-k commented 1 year ago

@grantgreene125 In Airtable create a formula column:

IF({attachment_column}, SUBSTITUTE(SUBSTITUTE((REGEX_EXTRACT({attachment_column},"\(.+?\)")),"(",""),")",""),"")

Please excuse the bad practice of Regex and substitute, I didn’t find a working Regex to extract the URL.

l-i-n-k commented 1 year ago

@thgh For some reason your fix didn’t arrive to the community. The plugin page still says "Last updated 2 years ago"

thgh commented 1 year ago

Hmm, I only checked here, I thought only the API went down

thgh commented 1 year ago

I reviewed the clientside code and it expected a different API output. Just made another change to the API that should fix it! So no plugin update required.