You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I like to do deep debugging with the clients generated using openapi-python-client. I would like to see request, response objects for every api call is logged/ dumped for analysis.
Expected behavior
HTTPx event hook is working but event hook is not called at all.
Looks like event hooks work with httpx client object but the generated code directly uses "httpx.request" helper function.
Please provide a way to do a full debugging / event hooks.
OpenAPI Spec File
NA
Desktop (please complete the following information):
OS: Ubuntu 22.04.1 LTS
Python Version: Python 3.10.4
openapi-python-client version 0.11.5
The text was updated successfully, but these errors were encountered:
Describe the bug
I like to do deep debugging with the clients generated using openapi-python-client. I would like to see request, response objects for every api call is logged/ dumped for analysis.
From the httpx documentation, its possible using Event Hooks (https://www.python-httpx.org/advanced/).
But I could not successfully able to hook the events.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
HTTPx event hook is working but event hook is not called at all.
Looks like event hooks work with httpx client object but the generated code directly uses "httpx.request" helper function.
Please provide a way to do a full debugging / event hooks.
OpenAPI Spec File
NA
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: