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

error when transform from har to py using command line #88

Open
rationalxde opened this issue Feb 8, 2023 · 1 comment · May be fixed by #89
Open

error when transform from har to py using command line #88

rationalxde opened this issue Feb 8, 2023 · 1 comment · May be fixed by #89
Labels
bug Something isn't working

Comments

@rationalxde
Copy link

Getting below error when doing the transform

.......
File "C:\Users\mxu\workspace\nftenv\nftenv\Lib\site-packages\transformer\request.py", line 46, in
@DataClass
^^^^^^^^^
File "C:\Users\mxu\AppData\Local\Programs\Python\Python311\Lib\dataclasses.py", line 1220, in dataclass
return wrap(cls)
^^^^^^^^^
File "C:\Users\mxu\AppData\Local\Programs\Python\Python311\Lib\dataclasses.py", line 1210, in wrap
return _process_class(cls, init, repr, eq, order, unsafe_hash,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\mxu\AppData\Local\Programs\Python\Python311\Lib\dataclasses.py", line 958, in _process_class
cls_fields.append(_get_field(cls, name, type, kw_only))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\mxu\AppData\Local\Programs\Python\Python311\Lib\dataclasses.py", line 815, in _get_field
raise ValueError(f'mutable default {type(f.default)} for field '
ValueError: mutable default <class 'mappingproxy'> for field headers is not allowed: use default_factory

command line: transformer C:\Users\mxu\workspace\nftenv\har\ >locustfile.py

windows 10 64bit.

@rationalxde rationalxde added the bug Something isn't working label Feb 8, 2023
@rationalxde
Copy link
Author

I downloaded the example har file www.google.com.har, and got the same error.

@rharish101 rharish101 linked a pull request Mar 15, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant