I faced the same issue but got to know after several tries that
interestingly if your script doesn't generate any output, it gives this
error. I was using the script only for updating the transaction with the
database and it was giving this error. I ...