-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Getting error while running the HAR file using CLI #74
Comments
Hi, this looks like a duplicate of #72 (based on the first line of your error message, only partially visible in your screenshot). Unfortunately, this project currently doesn’t have the resources to support Windows as a first-class platform. Please try running Transformer inside Docker instead! |
Hey all, _f1Text = open('har/#.har', encoding='utf-8').read() #now run transformer on your har directory_ It could be nice to just detect if you're on windows and use a different encoding by default though. |
It wasn't mentioned anywhere that Windows isn't supported. |
I had the same issue and like @JustinRoll says the issue has to do with the file encoding. Modifying the line 315 in the scenario.py file like the image below I was able to get the resulting locust file: It would be nice that the method 'dump' from the transformer class could receive the 'enconding' value as a parameter. |
Fixes #74 for Windows users, where the platform-specific encoding seems to be typically wrong.
Thank you for your help! I have pre-released v1.3.1 with the suggested change, and will make it official (and upload it to pypi) when I have gathered the necessary approval from Zalando. |
I have released v2.0.0 (major version bump because I also renamed the "blacklist" keyword argument) and also uploaded it to PyPI. Please let me know if a similar problem still occurs. 🙂 |
Describe the bug
I am getting below error so code is not able to convert into Locust python file
WARNING while searching for HAR files, skipping C:\HAR_File\demoblaze.com.har: 'charmap' codec can't decode byte 0x8d in position 219193: character maps to
2021-03-08 15:40:33,826 ERROR Please help us fix this error by reporting it! https://github.com/zalando-incubator/Transformer/issues
Transformer version
1.3.0
To Reproduce
Steps and input files to reproduce the behavior:
Expected behavior
It should create locustfile.py successfully without any errors
Screenshots

If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: