Hi everyone, has anyone experienced failures when ...
# ask-questions
a
Hi everyone, has anyone experienced failures when making requests to https://api.growthbook.io? I'm running a growthbook-proxy with the following cache settings: •
CACHE_EXPIRES_TTL: "3600"
•
CACHE_STALE_TTL: "60"
I keep seeing this error in the proxy logs:
Copy code
{
  "err": {
    "type": "Error",
    "message": "HTTP error: 502",
    "stack": "Error: HTTP error: 502\n    at /usr/local/src/app/packages/apps/proxy/dist/services/features/index.js:91:27\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)"
  },
  "msg": "Refresh stale cache error"
}
Here's the relevant code snippet for reference: Link to code Has anyone else faced this issue or has suggestions on how to troubleshoot or fix it?
s
Hi @ambitious-soccer-63281 šŸ‘‹ 502s usually indicate networking or firewall issues between your proxy and the GrowthBook API. Are you able to check that each node can reliably reach https://api.growthbook.io and to test the /healthcheck endpoint directly from your proxy environment? If you occasionally get a 502 on the healthcheck it can just be intermittent connectivity or upstream issues, not necessarily a misconfiguration in your proxy setup. It sounds like, though, you're getting a lot of these errors?
šŸ‘ 1