Skip to content

SDK not handeling connection timeout (Guzzle) #225

@ChrisTitos

Description

@ChrisTitos

Describe the bug
The SDK and the GuzzleFeatureRequester do not seem to gracefully handle connection timeouts. I have noticed this problem during your current ongoing outage.

To reproduce
This behavior was noticed on an instance where we do not use relay proxy. So when the server cannot connect within 3 seconds (or whatever the timeout is) any call to variant() or getAllFlags or others, will result in an exception being thrown. From what I can see the SDK only handles response errors (40x, 50x)

Expected behavior
I expect the exception to be handled by the SDK, and the last known cache value to be used if possible.

SDK version
6.2.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions