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

Handles factory=null in ConnectException while recording request-response in PendingRequest #54121

Open
wants to merge 1 commit into
base: 11.x
Choose a base branch
from

Conversation

StSarc
Copy link

@StSarc StSarc commented Jan 8, 2025

I fixed a bug where if there's a connectException while making a HTTP request (in send) and the factory is null (not set), it fails while trying to record request-response pair. This was added in #53530.

factory is not a mandatory object to be set while constructing PendingRequest. It's handled accordingly everywhere else in the code, except in the connectException.

This makes the code robust by ensuring the flow does not break if there's a connectException AND factory is not set.

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

Successfully merging this pull request may close these issues.

1 participant