Closed pafmaf closed 1 month ago
Sorry that this isn't working as expected, and THANKS for finding and reporting this.
I'll take a look at it tomorrow and push a fix in the next day or two.
This is where it happens: line 138 in src/zeebe/zb/ZeebeGrpcClient.ts
:
this.gatewayAddress = RequireConfiguration(
config.ZEEBE_ADDRESS || config.ZEEBE_GRPC_ADDRESS,
'ZEEBE_GRPC_ADDRESS'
)
The Configuration hydration defaults ZEEBE_ADDRESS to localhost:26500
.
If we change this to have no default, and instead default ZEEBE_GRPC_ADDRESS
to localhost:26500
we will preserve the existing behaviour: no explicit configuration defaults to localhost:26500
. And an explicit ZEEBE_GRPC_ADDRESS
will not be overridden by a default.
Hi! This is something that was not obvious to us during setup / configuration. Should be a simple fix if you know how it is supposed to work. Please clarify :)
SDK Component
Docs
Expected Behavior
README explains when and how to set
ZEEBE_ADDRESS
whenZEEBE_GRPC_ADDRESS
was already set.Current Behavior
ZEEBE_ADDRESS
is not mentioned in the README. It is documented somewhere else, as "Zeebe Gateway Address". It's still used and we, for example, need to set it likeZEEBE_ADDRESS = ZEEBE_GRPC_ADDRESS
. The given examples did not work, since it defaults tolocalhost...
.Possible Solution
Explain when
ZEEBE_ADDRESS
is required to be set / when it is used / how the setup is intended to work with multiple config values:ZEEBE_ADDRESS
+ZEEBE_GRPC_ADDRESS
(orZEEBE_REST_ADDRESS
).