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

Debugging middleware results in empty body #447

Open
ddebowczyk opened this issue Aug 12, 2024 · 1 comment
Open

Debugging middleware results in empty body #447

ddebowczyk opened this issue Aug 12, 2024 · 1 comment

Comments

@ddebowczyk
Copy link

Turning on debug mode on when interacting with OpenAI API (and other LLM provider APIs) results in empty body for any subsequent code - body is read by Saloon Debugger class, but then cannot be accessed anymore.

I think the reason is that the response body is unseekable and is not (and / or can not) be rewinded.

Is there any standard way of handling debugging in case of unseekable response streams?

@ddebowczyk
Copy link
Author

Might be related: guzzle/guzzle#1582

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

No branches or pull requests

1 participant