clean-answer-93696
09/14/2023, 1:55 PM// Get JSON from GrowthBook and deserialize it into GBFeaturesResponse struct
res, err := http.Get("<https://cdn.growthbook.io/api/features/><environment_key>")
if err != nil {
fmt.Printf("Error fetching features from GrowthBook: %s \n", err)
os.Exit(1)
}
var featuresResponse GBFeaturesResponse
err = json.NewDecoder(res.Body).Decode(&featuresResponse)
if err != nil {
fmt.Printf("Error decoding JSON: %s \n", err)
os.Exit(1)
}
features := growthbook.ParseFeatureMap(featuresResponse.Features)
white-salesclerk-40048
09/14/2023, 2:35 PMambitious-apartment-58735
09/14/2023, 5:29 PMUnrecognized key(s) in object: '{ name: \"test_experiment\"}'"}%
. I have no problem getting experiment data via API (we’re self-hosted), but following the documentation to update an experiment (https://docs.growthbook.io/api#tag/experiments/operation/updateExperiment) doesn’t work, and neither have a few variations on that (eg sending the data as a json file). This may be more of an API question (I don’t work with them often) than a GB one, but any advice you have would be appreciated. (Googling the unrecognized key error hasn’t helped.) Thanks!careful-grass-28115
09/14/2023, 9:12 PMNot found: Dataset xxx:my_dataset was not found in location US
The query from on the metrics tab has the dataset specified in my datasource connection info instead of "_my_dataset"._
How can I ensure the query for my metric analysis takes the correct Dataset from my datasource connection info?brave-agent-21457
09/15/2023, 4:58 AMMust set an HTTP Client before loading features.
It's because we using managed shared hosting and it dies not have PSR HTTP client
Unfortunately this can not be enable on the managed shared hosting.
What's the other option to use it in the PHP/WordPress ?icy-ability-15057
09/15/2023, 7:56 AMsome-planet-44104
09/15/2023, 8:52 AMcrooked-salesclerk-71686
09/16/2023, 10:57 AM$mod
operator to target specific users in such a way:
{
"userId": {
"$mod": [
3,
0
]
}
}
Thank you 🙂microscopic-tent-22623
09/18/2023, 8:33 AMrapid-exabyte-3349
09/18/2023, 9:15 AMVALUE WHEN ENABLED
means in feature flags?brave-judge-45835
09/18/2023, 11:28 AManonymous
09/18/2023, 6:27 PMincalculable-vase-75518
joined #general.average-tomato-92232
09/18/2023, 8:23 PMthankful-minister-34216
09/18/2023, 10:25 PMboundless-egg-79384
09/19/2023, 8:39 AMboundless-egg-79384
09/19/2023, 8:40 AMflaky-controller-11131
09/19/2023, 9:47 AMwhite-salesclerk-40048
09/19/2023, 3:55 PMcrooked-wire-35549
09/19/2023, 4:42 PManonymous
09/19/2023, 5:34 PMcurved-yak-65361
joined #general.prehistoric-ram-61825
09/20/2023, 7:13 AMelegant-king-24193
09/20/2023, 11:32 AMelegant-king-24193
09/20/2023, 11:43 AMstraight-dog-45711
09/20/2023, 5:02 PMmysterious-nail-58688
09/20/2023, 7:59 PMstocky-autumn-12575
09/20/2023, 8:42 PMHttp\Client\Exception\NetworkException: Failed to connect to <http://cdn.growthbook.io|cdn.growthbook.io> port 443 after 130032 ms: Connection timed out in /var/app/current/vendor/php-http/curl-client/src/Client
.php:164
Thank you!brief-honey-45610
09/21/2023, 3:50 AMbrief-honey-45610
09/21/2023, 3:55 AMbrief-honey-45610
09/21/2023, 3:57 AManonymous
09/25/2023, 4:19 AMmany-furniture-33676
joined #announcements. Also, able-island-97713
joined.