best-addition-62420
03/20/2025, 1:55 PM| {"level":50,"time":1742477988959,"pid":48,"hostname":"growthbook-proxy-74cdb798dc-8cwwq","msg":"connection polling error: API server unreachable"}
| {"level":50,"time":1742477988959,"pid":48,"hostname":"growthbook-proxy-74cdb798dc-8cwwq","msg":"connection polling error: no data"}
| {"level":50,"time":1742478048990,"pid":48,"hostname":"growthbook-proxy-74cdb798dc-8cwwq","msg":"connection polling error: API server unreachable"}
| {"level":50,"time":1742478048990,"pid":48,"hostname":"growthbook-proxy-74cdb798dc-8cwwq","msg":"connection polling error: no data"}
If I hit the proxy healthcheck endpoint https://growthbook-proxy.my.domain.com/healthcheck/checks , sometimes I get this result:
{
"ok": true,
"proxyVersion": "1.2.1",
"build": {
"sha": "",
"date": ""
},
"checks": {
"apiServer": "up",
"registrar": "connected",
"cache:redis": "ready"
}
}
Some other times I get this other result:
{
"ok": true,
"proxyVersion": "1.2.1",
"build": {
"sha": "",
"date": ""
},
"checks": {
"apiServer": "down",
"registrar": "connected",
"cache:redis": "ready"
}
}
Which shows the apiServer
being down and that would explain why I see this errors on the logs, but I can't explain why I'm still able to retrieve data. Also when `apiServer`is down, the API server healthchecks tell me it's healthy🤷
I'm able to register a SDK successfully in the UI and see this result (see picture bellow)
I'm also able to hit the Full API Endpoint (proxied) with an successfull 200 status.
Is this regular growhtbook-proxy behaviour? if not, what I'm doing wrong here?
Thank you for your help!happy-autumn-40938
03/20/2025, 5:19 PMconst resp = await fetch(ctx.growthbookApiHost + "/healthcheck");
const data = await resp.json();
if (data?.healthy) checks.apiServer = "up";
I wonder if you can simulate this check (perhaps inside a pod) to see if its a general k8s / istio thing, or a GB proxy issuebest-addition-62420
03/21/2025, 11:09 AM