How to get HTTP debugging info when using Python dap client library
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
8 hours ago
Hello,
when using the Python dap client library (not the CLI), is there a way to get access to the HTTP request / response headers and bodies for debugging?
Example: I sometimes get errors like "malformed HTTP response" or "invalid_client" but no other information in the stacktrace. It would be helpful to see the HTTP requests and responses that are happening behind the scenes; for example to answer follow-up questions that the support team has when I submit tickets about these errors. They only happen sometimes and are not intentionally reproducible, so having access to these requests and responses (excluding data files, obviously) in order to output them to a log would be very helpful...
Thanks,
Mark