Hello there,
I want to deploy growthbook in docker, but I have an error in GUI "Unexpected token '<', "<!DOCTYPE "... is not valid JSON"
I took a standart docker-compose.yml and change only that
environment:
- APP_ORIGIN=172.17.0.1:3000
- API_HOST=172.17.0.1:3100
- JWT_SECRET=1234566
- ENCRYPTION_KEY=4daHS2zS5cJGAtl2
- NODE_ENV=dev
this ip is default ip of docker0 interface. Api page opens on that api and port.
f
fresh-football-47124
02/29/2024, 5:43 PM
can you access the API directly?
fresh-football-47124
02/29/2024, 5:43 PM
it should load a json file with some config info if it works
fresh-football-47124
02/29/2024, 5:44 PM
you can also check the docker container logs for more information - its likely that the API request that is expecting a JSON object is failing because the API is returning an error
b
best-magazine-32978
03/01/2024, 12:33 PM
Hi, yes api works by directly access. I redeployed compose, and finnaly it's work. Thanks.
f
flaky-lion-33569
04/03/2024, 11:35 PM
@best-magazine-32978 what did you change to fix this issue?
I'm also facing the same issue
f
fresh-football-47124
04/04/2024, 5:00 AM
You'll either see the error when you visit the API url directly, or you'll see the error log from docker