SyntaxError: Unexpected token: u (sys_script_include.d2426c9ec0a8016501958bf2ac79c775.script; line 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2023 04:37 AM
while we are updating work-notes from remedy to snow, we are receiving below response.
SyntaxError: Unexpected token: u (sys_script_include.d2426c9ec0a8016501958bf2ac79c775.script; line 155)"},"status":"failure"}]
in the scripted rest api patch method we added the below code about the work notes to copy.
Please help to fix this issue and update the work notes properly.
Thank you!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2023 08:23 PM
@Surendra6 - Please add the below line after line no 48 (as per the screenshot in your question)
gs.info("js_response is "+ js_response);
Post addition of above code execute the integration and check the system log by navigate to
All > System logs > System log > All for message starts with "js_response is" and share the details
Thanks & Regards,
Vasanth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2023 02:11 AM
Hello
if JSON data is not correct and if you are not converting JSON data to String then this error will come, so we need to format JSON Data first and properly convert to String and parse it.
Thank You