I figured out that I was using the wrong API call. I accidenta used the backend task.set_project() instead of the front end task.move_to_project() and then all the errors were not informative.
Hi @<1774245260931633152:profile|GloriousGoldfish63> , I'm not sure what you mean. Can you elaborate please?
I mean how to set the task name at script onset of remotely running task?