Can someone help me, I'm trying to do the Retweet function

I tried to extend this code with the function :

I uploaded my own version but this is the error:

can anyone help?

Node-RED writes a log in syslog or to the console.
Based on the severance of the error displayed in your shots, I'm pretty sure you can find additional info there...