Hi everyone!
To be short, I’m testing an API with K6 and JavaScript, where I need to send 2 dates to get a report.
Answer: ERRO[0000] GoError: unknown module: k6/x/file
Searching on the web, couldn’t find information to solve the problem and get some feedback telling that K6 cannot download anything.
Hi @dikarey,
Welcome to our community forums! 
It looks like you’re trying to use a k6 extension (like GitHub - avitalique/xk6-file: k6 extension for writing files maybe?
) but the extension isn’t available, which is likely because you aren’t using a k6 binary with that extension compiled within.
To do so, you’ll need to use xk6
. You can find the docs here about how to do it, which is also explained as the very first thing to do in the extension docs there.
Can you try again, by following that, please?
Searching on the web, couldn’t find information to solve the problem and get some feedback telling that K6 cannot download anything.
As you say, it’s not possible to store files locally by default, but with that extension, as you tried, it should be possible. However, I think you’re missing the compilation step.
I hope that helps!
Cheers!