SyntaxError: Parse error during execution of action 222266208

Support
  • 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 threads i receive error Thread #1 : SyntaxError: Parse error during execution of action 222266208

    Can 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;
    

  • 0 Votes
    7 Posts
    1326 Views
  • Error with new URL Extention

    Moved Support
    0 Votes
    3 Posts
    760 Views
  • 0 Votes
    1 Posts
    691 Views
  • Parse String Error Excel Module

    Support
    0 Votes
    4 Posts
    1204 Views
  • "Is Element Exists" Errors

    Support
    0 Votes
    12 Posts
    2719 Views