Can someone help me with this syntax error? I gues...
# suitescript
l
Can someone help me with this syntax error? I guess my string concatenation is wrong
e
I would call encodeURLComponent on that string
c
No closing “ on the right?
e
that too lol
c
🤣
b
honestly your code editor is much better at fixing syntax errors than we are
we would tell you things like you probably dont want to stringify your run token
l
i tried doing this but im getting the same error
b
what the syntax error
l
org.mozilla.javascript.EcmaError: SyntaxError: Unexpected token: < (/SuiteScripts/SCH Parsehub Integration.js#34)
b
thats a syntax error for the json.parse
not your code
in this case, fair chance your response from line 29 isnt json
l
thats whats happening. I logged it and its not JSON so i cant really do JSON.parse - ive been working on different requests all day and i cant think straight anymore lol thank you guys