Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mattialo opened this issue Sep 26, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@mattialo
Copy link

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:
- image: oneuptime/probe:release
name:oneuptime-probe
env:
- name: PROBE_KEY
value: "2a2e9bb0----91288491c13f"
- name: PROBE_ID
value: "302e515c-
---66e3e7776627"
- name: ONEUPTIME_URL
value: "http://..."

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
}

@mattialo mattialo added the bug Something isn't working label Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant