akhilesh.kumar178
07/16/2026, 6:44 PMkapa.ai
07/16/2026, 6:44 PMWORKLOAD_API_BEARER_TOKEN is mismatched between the Worker and Workload API Server pods, causing Workload API calls to be rejected with a 401 Unauthorized error internally.
Workaround / Fix 1. *Find your container ID:*docker ps
2. *Enter the container:*docker exec -it containerID bash
3. *Inside the container, run the following:*# Check current pod status
kubectl -n airbyte-abctl get pods
# Generate and apply matching auth tokens
BEARER_TOKEN=$(openssl rand -hex 16)
echo "Generated token: $BEARER_TOKEN"
kubectl -n airbyte-abctl set env deployment/airbyte-abctl-worker \
WORKLOAD_API_BEARER_TOKEN="$BEARER_TOKEN" \
INTERNAL_API_AUTH_TOKEN="$BEARER_TOKEN"
kubectl -n airbyte-abctl set env deployment/airbyte-abctl-workload-api-server \
WORKLOAD_API_BEARER_TOKEN="$BEARER_TOKEN"
# Restart both services
kubectl -n airbyte-abctl rollout restart deployment airbyte-abctl-worker
kubectl -n airbyte-abctl rollout restart deployment airbyte-abctl-workload-api-server
# Wait for rollouts to complete
kubectl -n airbyte-abctl rollout status deployment airbyte-abctl-worker
kubectl -n airbyte-abctl rollout status deployment airbyte-abctl-workload-api-server
Some users also needed to apply the token to the server deployment as well:
kubectl -n airbyte-abctl set env deployment/airbyte-abctl-server WORKLOAD_API_BEARER_TOKEN=$BEARER_TOKEN
kubectl -n airbyte-abctl rollout restart deploy/airbyte-abctl-server
[GitHub Issue #65567; GitHub Issue #66692]
After the rollout completes, retry testing your Postgres source. Multiple users have confirmed this resolves the 502 error. [GitHub Issue #66692] đ 0 button đ 0 button âšī¸ Tip: Mention @kapa.ai in the thread for follow-ups or DM the app for 1-to-1 help.