I have a worker service that is communicating with a deployed temporal server. When I first start the work service, I’m able to create and execute/complete a couple of workflow. However, if i wait like 5 mins my worker service starts error out the following message in the logs. I was wondering if you have any insights on the error message. its confusing since it was able to create and complete a workflow.
In this setup i have a workflow, 3 activities that the workflow calls. We have a worker/taskqueue for the workflow. For each activity, it has its own worker and task queue as well.
From the error message, it looks like the worker is still polling the task queues even thou the workflow is complete. Is there some clean up calls I need to make that i’m not accounting for?
ERROR [2020-10-27 19:28:45,969] io.temporal.internal.worker.Poller: Failure in thread Activity Poller taskQueue="SampleActivities1", namespace="default": 5 ! io.grpc.StatusRuntimeException: UNAUTHENTICATED: processing token failed: invalid token. Errors = [Invalid Base64 encoding: illegal base64 data at input byte 118,, Invalid JWK fields,, Invalid algorithm,, JWT not currently valid,, invalid format for figment token] ! at io.grpc.stub.ClientCalls.toStatusRuntimeException(ClientCalls.java:244) ! at io.grpc.stub.ClientCalls.getUnchecked(ClientCalls.java:225) ! at io.grpc.stub.ClientCalls.blockingUnaryCall(ClientCalls.java:142) ! at io.temporal.api.workflowservice.v1.WorkflowServiceGrpc$WorkflowServiceBlockingStub.pollActivityTaskQueue(WorkflowServiceGrpc.java:2702) ! at io.temporal.internal.worker.ActivityPollTask.poll(ActivityPollTask.java:95) ! at io.temporal.internal.worker.ActivityPollTask.poll(ActivityPollTask.java:38) ! at io.temporal.internal.worker.Poller$PollExecutionTask.run(Poller.java:273) ! at io.temporal.internal.worker.Poller$PollLoopTask.run(Poller.java:242) ! at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ! at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ! at java.base/java.lang.Thread.run(Thread.java:834)