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

Docker har-to-k6 not working (ENOENT: no such file or directory) #139

Open
spe888 opened this issue Nov 27, 2023 · 1 comment
Open

Docker har-to-k6 not working (ENOENT: no such file or directory) #139

spe888 opened this issue Nov 27, 2023 · 1 comment

Comments

@spe888
Copy link

spe888 commented Nov 27, 2023

The har file exists, but the docker image is always returning a ENOENT error (e.g. using docker run grafana/har-to-k6:latest new-recording_19332.har > my-k6-script.js).

docker run grafana/har-to-k6:latest new-recording_19332.har > my-k6-script.js
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
Converting 'new-recording_19332.har'
Error reading archive file:
ENOENT: no such file or directory, open 'new-recording_19332.har', at path: new-recording_19332.har

OS Info:

ProductName:		macOS
ProductVersion:		14.1.1
BuildVersion:		23B81
Docker version 24.0.6, build ed223bc
@brunontr
Copy link

brunontr commented Dec 7, 2023

Workaround that worked for me.

I created that har directory and put my .har file there. Then:

docker run --rm -v $PWD/har:/converter/har grafana/har-to-k6:latest har/new-recording_162038.har >my_script.js

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