Unable to read .pem cert using open()

  • What Grafana version and what operating system are you using?

k6 v0.45.0 ((devel), go1.20.5, darwin/arm64)

  • What are you trying to achieve?

Trying generate k6 script by injecting .pem for both crt and key

  • How are you trying to achieve it?
    By reading .pem using open() and passing in options
    kept cert in same folder

  • What happened?
    unable to read cert using open()

  • What did you expect to happen?
    Expected load test on my end points

  • Can you copy/paste the configuration(s) that you are having problems with?

ERRO[0001] TypeError: Value is not an object: undefined
at setup hint=“script exception”

  • Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.

  • Did you follow any online instructions? If so, what is the URL?

Hi @sub :wave:

Thanks for the information you’ve provided.

It would, unfortunately, be hard to say what the problem you are encountering might be as is. As is would be challenging to find out or reproduce the issue you are experiencing without seeing the code you’ve been using.

Can you paste an example script here that reproduces the issue? It would help us help you :handshake:.

PS: If you do post a script, make sure you anonymize it.

Thank you :bowing_man: