@Pairs said in Event error:
CheckScreen method always returns GMAIL_MAIN_SCREEN
Could you describe in more detail what we are talking about? It would be desirable to attach a test project here or in a PM on the forum.
Hello,
I have one function "scraper" that scrapes data from website. and in that function there is another function "send to api" which is called to send that scraped data to api. But when I call 1st function "scraper" in Call function in several threads i receive error Thread #1 : SyntaxError: Parse error during execution of action 222266208
Can someone please guide me ?
@pushkraj said in SyntaxError: Parse error during execution of action 222266208:
Hello,
I have one function "scraper" that scrapes data from website. and in that function there is another function "send to api" which is called to send that scraped data to api. But when I call 1st function "scraper" in
Call function in several threadsi receive error Thread #1 : SyntaxError: Parse error during execution of action 222266208Can someone please guide me ?
Most likely you use curly braces in a string in actions with the expression data type or in the "Execute code" action
@Fox Thank you for replying.
I only have one "Execute code" action
Here is its contents.
// Sample HTML content
var htmlContent = [[SAVED_XML]];
// Regular expression pattern to extract email addresses
var emailPattern = /[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}/g;
// Extract email addresses from HTML content
var emails = htmlContent.match(emailPattern);
// Map emails
var data = emails.map(function(email) {
return " /n " + email + " /n ";
});
// Output the resulting email addresses
// log(data);
[[EMAILS]] = data;