I am following the example at Node.js | Camunda 8 Docs
I am using self managed camunda 8 with kind as per Local Kubernetes cluster | Camunda 8 Docs
I have port forwards:
kubectl port-forward svc/camunda-platform-zeebe-gateway 26500:26500
kubectl port-forward svc/camunda-platform-operate 8082:80
When I run the full node-js-sdk example I get this output:
Starting worker…
Starting human task poller…
[Zeebe] Deployed process c8-sdk-demo
[Zeebe Worker] handling job of type service-task
camunda:tasklist Requesting tasks/search +3s
/node_modules/got/dist/source/as-promise/index.js:118
request._beforeError(new types_1.HTTPError(response));
^
HTTPError: Response code 401 (Unauthorized) (request to http://localhost:8082/v1/tasks/search)
at Request. (/node_modules/got/dist/source/as-promise/index.js:118:42)
at processTicksAndRejections (node:internal/process/task_queues:95:5) {
code: ‘ERR_NON_2XX_3XX_RESPONSE’,
timings: {
start: 1713435068468,
socket: 1713435068469,
lookup: 1713435068470,
connect: 1713435068470,
secureConnect: undefined,
upload: 1713435068470,
response: 1713435068499,
end: 1713435068501,
error: undefined,
abort: undefined,
phases: {
wait: 1,
dns: 1,
tcp: 0,
tls: undefined,
request: 0,
firstByte: 29,
download: 2,
total: 33
}
}
}
Is there something missing from the example?