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

Improve logging so that it would show why the stream is failing despite status 200 from proxy #140

Open
samip5 opened this issue Jan 15, 2024 · 1 comment

Comments

@samip5
Copy link

samip5 commented Jan 15, 2024

As tittle, it seems often I get an 200 status from proxy but playback doesn't start despite it, and I have no way of knowing what's the issue.

It should return the upstream aka YouTube's reponses status code and message at least if it's having issues.

@samip5
Copy link
Author

samip5 commented May 12, 2024

@FireMasterK I was looking into possibly logging the response body, but it seems I'm really out of my depth here with Rust as all of the ways I have tried results in it not compiling. :(

Pretty much all of the ways would consume the resp on line 347 in main.rs: let resp = CLIENT.execute(request).await;
Which of course makes everything else not really happy. Some guidance would be much appreciated.

This my StackOverflow question about this: https://stackoverflow.com/questions/78466365/rust-trying-to-include-response-body-to-my-response-with-reqwest-and-actix-web?noredirect=1#comment138333145_78466365

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