"Ru Script" Automation: Test Failed

Hey guys,

I’ve just subscribed to Airtable Pro and i’m trying to set automations with “Run Script”. I’ve tried my first automations with a simple scripts as console.log(“test”) and
let table = base.getTable(“Titular”);

let query = await table.selectRecordsAsync();

console.log(query.records);

But when a test it, it keeps getting “Test Failed”.

I don’t know what to do in this case. Would appreciate if someone give me a clue. Thanks.

Luis

I’m getting the message: “An unknown error occurred.”

I am facing with the same issues

Welcome to the community, @Luis_Guilherme_Almei! @B13_Technology :smiley:

When looking at the code in the editor, do you see wavy red lines under any part(s)? If so, those indicate errors, and hovering over the code with the red lines underneath will give you a pop-up indicating the nature of the error.

If nothing is marked as being erroneous, could you take a screenshot of the code and post it here?

I have the same exact issue. Looks like script automations are broken. When I test run the default script “console.log(Hello, ${base.name}!);” I get “An unknown error occurred.”

Hi @Justin_Barrett, thank you!

There’s no red lines indicating possible erros. I’m still getting Test failed whichever code i write, as simple as “Hello World”.

Screenshot:

I have no error in my code but it’s still failed with the error follow my debug console. Please help to have a look at them.

I am getting the same issue.

Even the following line is not working :

console.log("hi")

Interestingly, it is not working in a specific base.
Tried my actual webhook automation script in another base and it works perfectly. But not in the one I actually need it

@Luis_Guilherme_Almei @Amit_Singh1 @B13_Technology This sounds like a deeper issue. I suggest contacting Airtable support directly. They can check out more details behind the scenes and see what’s preventing those scripts from working properly. If it turns out to be something that you can fix yourself, please share the solution here in case others run into the same problem.

1 Like

I’m suspicious of the quotes in the console.log(''); statement.

Have you tried just…

console.log("Test");

Hi there,

Erin with Airtable Support here – thanks to everyone who wrote in about this, and we’re very sorry for the trouble this caused! The team was able to identify an issue here that was affecting certain bases, and it now seems to be completely resolved. If you were previously encountering this error when testing a new automation script, the test should now be passing if you re-try.

2 Likes