Hi, I am trying to set up GrowthBook but it fails ...
# ask-questions
l
Hi, I am trying to set up GrowthBook but it fails with "Error connecting to the GrowthBook API at http//...3100", what I am doing wrong? I put haproxy in front of it and I use a domain like gb-example.com and gb-api.example.com, - APP_ORIGIN=https://gb.example.com:443 and - API_HOST=http://gb-api.example.com:3101, where haproxy sends to ports 443 -> 3000 and 3101 -> 3100, my compose ports are: 3000:3000 and 3101:3100.
f
Can you hit the API host directly?
l
yes, curl "http://gb-api.example.com:3100" returns output
f
are you getting a CORS error with that 'failed connecting' ? (if you look in the console)
l
the only error in browser console is gb-api.example.com refresh fetch mixed block and looks denied
f
so either the request is not making it to the API end point, or the API end point is ignoring it because of the CORS headers
l
any pointers how to debug?
docker logs shows this: "{"level":30,"time":1736366925462,"pid":59,"hostname":"t2gb1","msg":"Back-end is running at http://localhost:3100 in production mode. Press CTRL-C to stop"}"
f
can you share or DM the request details from the console?
l
sure, I will DM