Unable to Authenticate request with 10001 error code

I want to create a worker and put a script into it, based on the explorations i came upon this script, but I'm getting when i run the script (attached a file).
Was this page helpful?