Repository navigation
fix: apply proxies to realtime, analytics and event requests - #291
Open
pcbeingused333 wants to merge 2 commits into
Open
pcbeingused333 wants to merge 2 commits into
pcbeingused333 wants to merge 2 commits into
Conversation
The proxies passed to Flagsmith were only set on the session used for the main API. Forward them to the SSE stream, the analytics flush and the event processor too. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
All reported issues were addressed across 5 files
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
Author
|
Valid: This comment was drafted with Claude Code. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The
proxiesargument ofFlagsmithis only set on the session used for flags, identities and the environment document. The realtime SSE stream (requests.get), the analytics flush and the event processor (its own session) never receive it, so behind a required proxy those requests try to connect directly.This forwards
proxiestoEventStreamManager,AnalyticsProcessorandEventProcessor. Each new argument is optional and defaults to the previous behaviour.custom_headersis not changed here.Testing and validation
mainand pass with this change.test_flagsmith__init__expected_headers_sentcases also fail on unmodifiedmainin this local environment (Accept-Encodingincludeszstd).This change was prepared with AI assistance.