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;
    

  • Event error

    Moved Support
    0 Votes
    2 Posts
    408 Views
  • 0 Votes
    7 Posts
    950 Views
  • 0 Votes
    6 Posts
    927 Views
  • Function execution rate

    Support
    0 Votes
    3 Posts
    442 Views
  • 0 Votes
    1 Posts
    590 Views