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

Update prom-client for node18 #44

Open
contecloud opened this issue Jun 21, 2023 · 2 comments
Open

Update prom-client for node18 #44

contecloud opened this issue Jun 21, 2023 · 2 comments

Comments

@contecloud
Copy link

contecloud commented Jun 21, 2023

When using Node.JS 18.16.0, prom-client returns the given error:

TypeError: Value is not a valid number: 191

@brunoclaudinos
Copy link

When using Node.JS 18.16.0, prom-client returns the given error:

TypeError: Value is not a valid number: 191

Any solution?

@brunoclaudinos
Copy link

Probably the reason you are getting this error is because the Express's response is now returning a string value in the _contentLength field.

You can try to fix this error by converting this value to a number before calling Monitor.init method

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants