Solved

Evaluation REST API not working

  • 16 January 2024
  • 3 replies
  • 79 views

Hey everyone! Here is a situation that I am facing beign new using amplitude. We’re trying to use amplitude Evaluation REST API to get users’ variant for a feature flag we’ve created. All seems to be alright, deployment key is created, feature flag is created and active but for some reason when I try to get user variant it always returns an empty object

https://www.docs.developers.amplitude.com/experiment/apis/evaluation-api/#example

I’ve tested from that page and also doing a cURL. 

Any help would be awesome! Thanks

icon

Best answer by eddie.gaona 22 January 2024, 19:45

View original

3 replies

Userlevel 5
Badge +8

@Daniel Barria thanks for writing in and apologies for the delay. Will ping you via DM to try and troubleshoot this.

Userlevel 5
Badge +9

Hello @Daniel Barria hope you are well!

 

I looked at one of the Feature Flags enabled in your organization and noticed that it’s only released to 40% of users. This would mean that more users would have an empty object or off for the feature flag than on.

 

Looking at the project the FF belongs to doesn’t seem there are many unique users in the past 7 days (Since the FF was created on Jan 18th) with only 4 unique users.  I would suggest using the Evaluation API UI and there will be users who get the on value: https://www.docs.developers.amplitude.com/experiment/apis/evaluation-api/#example.

 

Hey there! didn’t know that empty object means off. Thank you for that catch up! We’ve almost no users because we’re @ development phase, thank you for your help!

Reply