splitio / php-client

PHP SDK client for Split Software
https://split.io
Other
16 stars 12 forks source link

Server-side SDK always getting control treatments. #224

Closed markosege closed 8 months ago

markosege commented 8 months ago

When I call getTreatment($key, $featureName, array $attributes = null) I am always getting control treatments.

Also when I debug $bucketingKey = $inputValidation['bucketingKey'];is null not sure where to pass the 'bucketingKey'

agustinona commented 8 months ago

HI @markosege is your Redis instance populated and reachable by the SDK? Can you produce debug logs during the SDK initialization and treatment evaluation and share them?

The bucketing key is an optional parameter when evaluating treatments. You don't need to (and we recommend you don't) pass it in order to get a treatment.

agustinona commented 8 months ago

@markosege I'm closing this issue as it has been addressed through a support ticket and ensuring the Synchronizer was running and properly caching FF data in Redis.