- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Nov 28, 2020 06:48 AM
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
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Nov 28, 2020 06:50 AM
I’m getting the message: “An unknown error occurred.”
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Nov 28, 2020 08:39 PM
I am facing with the same issues
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Nov 29, 2020 12:34 AM
Welcome to the community, @Luis_Guilherme_Almei! @B13_Technology :grinning_face_with_big_eyes:
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?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Nov 29, 2020 02:33 AM
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.”
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Nov 29, 2020 06:22 AM
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:
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Nov 29, 2020 07:26 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Nov 30, 2020 03:42 AM
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
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Nov 30, 2020 08:58 AM
@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.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Nov 30, 2020 09:21 AM
I’m suspicious of the quotes in the console.log('');
statement.
Have you tried just…
console.log("Test");