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

har2locust KeyError: '_resourceType' #2503

Closed
2 tasks done
AnaKuzina opened this issue Dec 5, 2023 · 2 comments
Closed
2 tasks done

har2locust KeyError: '_resourceType' #2503

AnaKuzina opened this issue Dec 5, 2023 · 2 comments
Labels

Comments

@AnaKuzina
Copy link

Prerequisites

Description

Hi everyone!

I'm sorry for this bug here but I can't open an issue in the har2locust repository. So I've installed har2locust, opened http://quotes.toscrape.com/ through Firefox, opened Network Tab, right-click and 'Save all as HAR'. Then in Terminal I went to the folder where there is this saved file and run
har2locust quotes.toscrape.com_Archive\ \[23-12-05\ 16-50-12\].har > locustfile.py

I got this error:
KeyError: '_resourceType'

Can someone help me to solve this issue, please? Thanks in advance!

Command line

har2locust quotes.toscrape.com_Archive\ [23-12-05\ 16-50-12].har > locustfile.py

Locustfile contents

no locustfile

Python version

3.11.6

Locust version

2.18.0

Operating system

MacOS

@AnaKuzina AnaKuzina added the bug label Dec 5, 2023
@cyberw
Copy link
Collaborator

cyberw commented Dec 5, 2023

Thanks for notifying me, I have enabled issues in that repo now :)

It seems har2locust has some issues with recordings created with anything but Chrome/Edge, as they dont contain the same data. I have made a fix/workaround and released it in 0.8.6 (available any minute now)

SvenskaSpel/har2locust@d515e57

@AnaKuzina
Copy link
Author

Thanks for notifying me, I have enabled issues in that repo now :)

It seems har2locust has some issues with recordings created with anything but Chrome/Edge, as they dont contain the same data. I have made a fix/workaround and released it in 0.8.6 (available any minute now)

SvenskaSpel/har2locust@d515e57

Wow, thank you for so speedy response and help!
Kind regards, Ana

@cyberw cyberw closed this as completed Dec 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants