OneUptime / oneuptime

OneUptime is the complete open-source observability platform.
https://oneuptime.com
Apache License 2.0
4.83k stars 226 forks source link

kubernetes deploy probe error: BadDataException [Error]: Invalid number: NaN #1720

Open mattialo opened 1 month ago

mattialo commented 1 month ago

Describe the bug when i try to run the probe in my aks cluster following the guide in your doc i gave this error: BadDataException [Error]: Invalid number: NaN

To Reproduce

apiVersion: apps/v1 kind: Deployment metadata: name: oneuptime-probe namespace: prj1 spec: replicas: 1 selector: matchLabels: app: oneuptime-probe template: metadata: labels: app: oneuptime-probe spec: containers:

Expected behavior A succesfull runs of a probe

Deployment Type self hosted (latest)

Additional context stacktrace of the error:

@oneuptime/probe@1.0.0 start node --require ts-node/register Index.ts

/usr/src/Common/Types/PositiveNumber.ts:18 throw new BadDataException(Invalid number: ${positiveNumber}); ^ BadDataException [Error]: Invalid number: NaN at new PositiveNumber (/usr/src/Common/Types/PositiveNumber.ts:18:15) at new Port (/usr/src/Common/Types/Port.ts:58:17) at Object. (/usr/src/Common/Server/EnvironmentConfig.ts:143:32) at Module._compile (node:internal/modules/cjs/loader:1504:14) at Module.m._compile (/usr/src/app/node_modules/ts-node/src/index.ts:1618:23) at Module._extensions..js (node:internal/modules/cjs/loader:1588:10) at Object.require.extensions. [as .ts] (/usr/src/app/node_modules/ts-node/src/index.ts:1621:12) at Module.load (node:internal/modules/cjs/loader:1282:32) at Function.Module._load (node:internal/modules/cjs/loader:1098:12) at TracingChannel.traceSync (node:diagnostics_channel:315:14) { _code: 400 }