ambitious-soccer-63281
01/06/2025, 1:06 AMENABLE_REMOTE_EVAL=true
.
Here’s an example of my implementation:
import { GrowthBook } from "@growthbook/growthbook";
const growthbook = new GrowthBook({
apiHost: "<https://growthbook-proxy.xxx/>",
clientKey: "sdk-xxx",
remoteEval: true,
debug: true,
attributes: {
"corporate_reference_id": "f48fdb3c-8448-566e-9994-50a339f8bc2b"
}
});
await growthbook.init();
const value = growthbook.getFeatureValue(
"ybsg_batch_transfer"
);
console.log(value); // undefined
I’ve set up the Growthbook feature on the platform with default value false
.
I looked through the JS library and tried to call the API for remote evaluation, but I keep getting a 400 error
{
"status": 400,
"error": "Failed to get features (remote eval required)"
}
Seems like it fails here: https://github.com/growthbook/growthbook-proxy/blob/fec9cb05891e927326c6d8764a447d[…]9d5b4/packages/apps/proxy/src/controllers/featuresController.tsfresh-football-47124
happy-autumn-40938
01/06/2025, 4:43 AMambitious-soccer-63281
01/06/2025, 5:37 AMhappy-autumn-40938
01/06/2025, 5:40 AMambitious-soccer-63281
01/06/2025, 6:39 AM