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

TypeError: 'EventHook' object is not callable #1757

Closed
renanbastos93 opened this issue May 5, 2021 · 6 comments
Closed

TypeError: 'EventHook' object is not callable #1757

renanbastos93 opened this issue May 5, 2021 · 6 comments

Comments

@renanbastos93
Copy link

Describe the bug

Expected behavior

Actual behavior

Steps to reproduce

Environment

  • OS: MacOS Catalina
  • Python version: 3
  • Locust version: 1.5.1
  • Locust command line that you ran: locust -f file.py
  • Locust file contents (anonymized if necessary): test to grpc
@cyberw
Copy link
Collaborator

cyberw commented May 6, 2021

Need more details...

@renanbastos93
Copy link
Author

renanbastos93 commented May 6, 2021

Need more details...

hi, sorry.

I got it, I changed request_failure.fire to request.fire

@cyberw
Copy link
Collaborator

cyberw commented May 6, 2021

No worries!

That's weird though, it is supposed to be backwards compatible. Can you give an example of your code that didnt work?

@renanbastos93
Copy link
Author

I did need to test benchmark to gRPC using the Locust then in the new version was deprecated methods request_failure and request_success. It was changed to request unify method based on the #1750, and I tried using the new method request() but unsuccess after that using the method fire work on.

@cyberw
Copy link
Collaborator

cyberw commented May 6, 2021

ah, so you were running request(...) instead of request.fire(...)?

ok!

@renanbastos93
Copy link
Author

ah, so you were running request(...) instead of request.fire(...)?

ok!

yeah, hehehe

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants