You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Our Unleash setup is the following:
unleash-client-php: v2.5.283
unleash edge: v19.2.0
unleash server: 6.0.6
Currently we use Unleash Edge v18.0.1, it works as expected. We are trying to upgrade Edge to v19.2.0 which causes unleash-client-php (v2.5.283) to always return null in validateResponse(). The reason is that Unleash Edge v19.2.0 returns the response with a bit different fields, in particular it returns impressionData instead of impression_data (Unleash Edge v18.0.1).
Hi! This was a fix from Unleash Edge 19.0.0 and it's one of the reasons of the major version bump. The problem is that PHP has implemented it wrong and looked at the snake case version:
I believe a simple solution would be to expect either snake case or camel case and support both for some versions. We can release that as a patch of the current version so the upgrade should be simple
Is there an existing issue for this?
Describe the bug
Our Unleash setup is the following:
unleash-client-php: v2.5.283
unleash edge: v19.2.0
unleash server: 6.0.6
Currently we use Unleash Edge v18.0.1, it works as expected. We are trying to upgrade Edge to v19.2.0 which causes unleash-client-php (v2.5.283) to always return null in
validateResponse()
. The reason is that Unleash Edge v19.2.0 returns the response with a bit different fields, in particular it returnsimpressionData
instead ofimpression_data
(Unleash Edge v18.0.1).Unleash client is configure like this:
While debugging it I can see that the request is sent to
/api/frontend/features/<feature name>
To reproduce
Sample code (optional)
No response
Version
v2.5.283
Expected behavior
Within
validateResponse()
it must expectimpressionData
instead ofimpression_data
, or both for backward compatibility.Logs (optional)
No response
Additional context (optional)
No response
The text was updated successfully, but these errors were encountered: