I am trying to use the ExecuteScript processor to run a python program that connects to irc and posts messages. I have python3 on my system but when I paste the python code into the ExecuteScript processor I get the following error:
Unable to load script: TypeError: str() takes at most 1 arguments (2 given) in <script> at line number 14: javax.script.ScriptException: TypeError: str() takes at most 1 arguments (2 given) in <script> at line number 14
javax.script.ScriptException: AttributeError: 'NoneType' object has no attribute 'strip' in
Subscribe to Support the channel: https://youtube.com/c/vikasjha001?sub_confirmation=1 Need help? Message me on LinkedIn: https://www.linkedin.com/in/vikasjha001/ Want to connect on Instagram? Here is my id @vikasjha001 Connect to me: 💥 LinkedIn ...
I first set it up with executestream and was successful in getting it to work. Isn't it better to use invokescript or executescript because then there isn't a need to maintain scripts outside of NiFi? I just thought it would be better to natively pass the flowfile using flowfile = session.get().