Skip to content

Conversation

@luxscious
Copy link
Contributor

to address the debug log:
DEBUG:devcycle_python_sdk.managers.sse_manager:DevCycle: failed to read SSE message: 'SSEClient' object has no attribute 'is_connected'

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes an AttributeError that occurred when attempting to call a non-existent is_connected() method on the SSEClient object. The fix replaces the problematic method call with two alternative checks: verifying that the client is not None and confirming that the read thread is alive.

Key Changes:

  • Removed the non-existent is_connected() method call on SSEClient
  • Added a check for client is None to handle cases where the SSE client hasn't been initialized
  • Added a check for read_thread.is_alive() to verify the SSE connection thread is running

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@luxscious luxscious merged commit bc164cc into main Jan 9, 2026
18 checks passed
@luxscious luxscious deleted the none-check-for-sse-client-connect branch January 9, 2026 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants