JeyBob
05/19/2025, 4:17 PMCeligo AI
05/19/2025, 4:18 PMAI generated answer (using internal Slack threads):Based on the provided Slack threads, here are the responses: 1. The error "org.mozilla.javascript.EcmaError: SyntaxError: Unexpected token: <" is usually encountered when a script tries to parse a malformed string (JSON) into an object. The issue seems to be with the line "var body=JSON.parse(result.body);". It's recommended to log the result.body before parsing to check if it's a JSON. Also, check if the response code is 200 because if it returns an error, the body might be empty or plain text. The error "Unexpected token: <" usually occurs when you try to parse HTML or XML to JSON. If the first character JSON.parse encounters is an angle bracket (like <html>), it will throw this error. Logging the result.body will probably reveal that the result is being returned as HTML, not JSON. 2. The error "Uncaught ReferenceError: fetchClientScripts is not defined" seems to be a system issue. No solution was provided in the thread. 3. The "Syntax error: missing ; before statement" error in a client script from SW21 might be due to the NetSuite instance being set to parse 2.x as 2.0. The script uses features not implemented in 2.0 (like template strings and let). It's recommended to use 2.1 to avoid this error. ****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ******
Celigo AI
05/19/2025, 4:18 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.859503567
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.835202157
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.831669688
Celigo AI
05/19/2025, 4:18 PM