Navigation Menu

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

StreamError details #432

Closed
hadisajj2 opened this issue Dec 6, 2022 · 7 comments
Closed

StreamError details #432

hadisajj2 opened this issue Dec 6, 2022 · 7 comments

Comments

@hadisajj2
Copy link

I am using proxygen and keep on getting StreamError. I have gone through ProxyGen code and I believe this error arises because there is an HTTP error (abort unacknowledged message) when sending/ or receiving. Is there a way to obtain more insight/granularity on whether the error is from a HTTP request or response?

@hadisajj2 hadisajj2 changed the title Question regarding Stream Error StreamError details Dec 6, 2022
@afrind
Copy link
Contributor

afrind commented Dec 6, 2022

Do you mean kErrorStreamUnacknowledged? This happens when the peer sends a message indicating that your HTTP request was not accepted and can be safely retried. If you could include any more specific details, log messages, or code snippets it would help.

@hadisajj2
Copy link
Author

My logs just show that ProxyGen is throwing a "StreamAbort" error, I am trying to find out what are the potential causes of StreamAbort to dig deeper in my code base. To my understanding its either from sending or receiving an HTTP message, but I want to know if there is a way to tell if its send or receive or does error mean something else?

CORRECTION: I wrote StreamError in the question, whereas it should have been StreamAbort.

@afrind
Copy link
Contributor

afrind commented Dec 6, 2022

StreamAbort means we received a H2 or H3 RST_STREAM. Try enabling VLOG 4 and you can see a bunch more detail that might give you insight about the reason.

@afrind
Copy link
Contributor

afrind commented Dec 7, 2022

Please reopen with more details if you still need help

@hadisajj2
Copy link
Author

Okay thank you!

@hadisajj2
Copy link
Author

hadisajj2 commented Dec 21, 2022

@afrind Hi, I am actually not using HTTP1 (all my versions are set to 1) and by default its set to 1. Is it possible that any HTTP1 message will throw a StreamAbort message? Or perhaps folly/proxygen setting http2 somewhere?

@hadisajj2 hadisajj2 reopened this Dec 21, 2022
@afrind
Copy link
Contributor

afrind commented Jan 23, 2023

I think StreamAbort is only generated from HTTPSession::onAbort, which is not called by the HTTP1xCodec, so it's probably using HTTP/2. Please try turning on verbose logging level 4 (-v 4) and paste your output for additional help.

@afrind afrind closed this as completed Jan 23, 2023
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

2 participants