Error in syntax parser involving invokeUrl and workdrive upload file

Error in syntax parser involving invokeUrl and workdrive upload file

I wasted way too much time and haven't even bothered to get this working yet but it all should be simple after debugging this issue. I see literally no different results between the two syntaxes and have seen no one else talk about this issue but it just literally won't let me save the function at all if that first line exists even though it seems functionally identical to the other chunk. Am I missing for anything that makes this not an insane bug? Even when the variable is overwritten it won't let me save it. What is the syntax parser doing here. Turning off syntax assist still wouldn't let me save it. Thank you for wasting my time again zoho with another bizarre issue.