Hi everyone, may you help me? I’m trying to deploy a self-managed Camunda8 on local k8s cluster (with kind), but I have trouble with connecting to the gateway using zeebe node-js-sdk client. Considering that the Desktop Camunda Modeler goes well, I believe there’s something wrong with my sdk config.
I can connect to my gateway and deploy BPs through Desktop Camunda Modeler using the settings as follow:
However, I cannot connect to it through the zeebe node-js-sdk using the similar settings. Here is my config for node-js-sdk:
const config: Camunda8ClientConfiguration = {
ZEEBE_ADDRESS: "zeebe.camunda.local",
ZEEBE_CLIENT_ID: "zeebe",
ZEEBE_CLIENT_SECRET: "demo",
ZEEBE_GRPC_ADDRESS: "zeebe.camunda.local",
CAMUNDA_AUTH_STRATEGY: "OAUTH",
CAMUNDA_OAUTH_URL:
"http://camunda.local/auth/realms/camunda-platform/protocol/openid-connect/token",
CAMUNDA_TASKLIST_BASE_URL: "http://camunda.local/tasklist",
CAMUNDA_OPERATE_BASE_URL: "http://camunda.local/operate",
CAMUNDA_OPTIMIZE_BASE_URL: "http://camunda.local/optimize",
CAMUNDA_SECURE_CONNECTION: false,
CAMUNDA_ZEEBE_OAUTH_AUDIENCE: "zeebe-api",
CAMUNDA_OPERATE_OAUTH_AUDIENCE: "operate-api",
CAMUNDA_TASKLIST_OAUTH_AUDIENCE: "tasklist-api",
CAMUNDA_OPTIMIZE_OAUTH_AUDIENCE: "optimize-api",
zeebeGrpcSettings: {
ZEEBE_CLIENT_LOG_LEVEL: "DEBUG",
ZEEBE_INSECURE_CONNECTION: true,
},
CAMUNDA_LOG_LEVEL: "debug",
CAMUNDA_TENANT_ID: "",
};
and these are my client code outputs:
20:51:13.464 | zeebe | INFO: Grpc Middleware blocking: false
20:51:13.525 | zeebe | INFO: Middleware emits ready
20:51:18.590 | zeebe | INFO: Set Grpc channel ready timer for 3000ms
/.../camunda-zeebe-client-ts/node_modules/@grpc/grpc-js/src/call.ts:82
const error = new Error(message);
^
Error: 13 INTERNAL: Received RST_STREAM with code 2 triggered by internal client error: Protocol error
I appreciate any help you can offer. Thank you in advance!