fix(docs,c8run): add CAMUNDA_TASKLIST_BASE_URL to environment variables#590
fix(docs,c8run): add CAMUNDA_TASKLIST_BASE_URL to environment variables#590
Conversation
just developing with that stack, `new Camunda8()` fails if the `CAMUNDA_TASKLIST_BASE_URL` is not set
|
This should not fail... What error message do you get? The Configuration schema has: /** The base url for the Tasklist API */
CAMUNDA_TASKLIST_BASE_URL: {
type: 'string',
optional: true,
default: undefined,
}, |
`new Camunda8()` fails if the `CAMUNDA_TASKLIST_BASE_URL` is not set
/Users/.../node_modules/@camunda8/sdk/dist/lib/RequireConfiguration.js:6
throw new Error(`Missing required configuration ${String(key)}. Please supply this value as an environment variable or configuration object field.`);
^
Error: Missing required configuration CAMUNDA_TASKLIST_BASE_URL. Please supply this value as an environment variable or configuration object field. |
|
@vobu, I can't reproduce this. I created a minimal reproducer here: https://github.com/jwulf/mr-590 Can you try that please, in a new terminal with no environment set. BTW: thanks for the PR! |
sure, will try and report back - please add me as collaborator to the repo, currently getting a |
Set to public. Sorry about that. |
|
figured out the problem , it is with getting the task list api client . import { Camunda8 } from '@camunda8/sdk'
const c8 = new Camunda8()
+ c8.getTasklistApiClient()
console.log("If you see this, it didn't throw.")produces npm start ✔
> c8sdk-test@1.0.0 start
> source .env && tsx index.ts
/Users/.../mr-590/node_modules/@camunda8/sdk/dist/lib/RequireConfiguration.js:6
throw new Error(`Missing required configuration ${String(key)}. Please supply this value as an environment variable or configuration object field.`);
^
Error: Missing required configuration CAMUNDA_TASKLIST_BASE_URL. Please supply this value as an environment variable or configuration object field.
at RequireConfiguration (/Users/.../mr-590/node_modules/@camunda8/sdk/src/lib/RequireConfiguration.ts:8:9)
at new TasklistApiClientI was under the impression that with the near-zero-config constructor, the camunda client would make a fair/default assumption to find the tasklist API at |
|
Previously, the SDK was optimised for SaaS connection as the default. For 8.8.0 we'll optimise for localhost — if we can figure out what port it is (8080 vs 8088) |
just developing with that stack,
new Camunda8()fails if theCAMUNDA_TASKLIST_BASE_URLis not setDescription of the change
[Describe your changes here]
Type of change
Checklist
alphabranchFurther comments
[If this is a relatively large or complex change, kick off the discussion by explaining why you chose the solution you did and what alternatives you considered, etc...]