Skip to content

Getting an error when trying to access /metrics #82

@Nerexbcd

Description

@Nerexbcd

Hi!

When I try to access the /metrics i get this error:

TypeError [ERR_INVALID_ARG_TYPE]: The "chunk" argument must be of type string or an instance of Buffer or Uint8Array. Received an instance of Promise
    at new NodeError (node:internal/errors:405:5)
    at write_ (node:_http_outgoing:875:11)
    at ServerResponse.end (node:_http_outgoing:1026:5)
    at /<path>/test.js:15:7
    at Layer.handle [as handle_request] (/<path>/node_modules/express/lib/router/layer.js:95:5)
    at next (/h<path>/node_modules/express/lib/router/route.js:149:13)
    at Route.dispatch (/<path>/node_modules/express/lib/router/route.js:119:3)
    at Layer.handle [as handle_request] (/<path>/node_modules/express/lib/router/layer.js:95:5)
    at /<path>/node_modules/express/lib/router/index.js:284:15
    at Function.process_params (/<path>/node_modules/express/lib/router/index.js:346:12)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions