icy-market-57765
05/04/2023, 11:02 PMfresh-football-47124
happy-autumn-40938
05/05/2023, 5:23 AMpolling error
occurs when the proxy can't connect to your public API endpoint (in this case, to get a list of valid SDK Connections from GrowthBook). It's basically an initial handshake between the proxy and the GB app. It relies on both GROWTHBOOK_API_HOST
and SECRET_API_KEY
being set correctly, although in your case it sounds like this may already be set. I might start there, double check those values. Also, on the GrowthBook side, you'll need both PROXY_ENABLED=1
and PROXY_HOST_PUBLIC
set (seems like you've probably already done this as well, although you didn't mention PROXY_ENABLED).
From the stack trace above there isn't quite enough information to determine whether the proxy is actually reaching the GB app or not, although a 401 might indicate that at least you're able to hit the correct server. You could also check your GB app logs and see whether GrowthBook is actually receiving the request from the proxy on the public API endpoint (specifically the proxy will try to reach $GROWTHBOOK_API_HOST/api/v1/sdk-connections?withProxy=1&limit=100
). The GB app will probably log an error of some sort if it's returning a 401 on this endpoint.
If this doesn't work, we might try a GET to the above endpoint from within your network (ex: from a custom ECS instance). You'd need to add a header to make this request work:
Authorization: Bearer $SECRET_API_KEY
If the manual GET also fails, then we've got a networking problem, which could be Route53 or something else entirely.Open source platform for stress free deployments, measured impact, and smarter decisions.
Powered by