https://www.growthbook.io/ logo
a

adventurous-vase-72101

02/11/2022, 7:28 AM
Hi, I’m trying to access Feature Definitions Endpoint but I get following error. Am I missing something?
f

fresh-football-47124

02/11/2022, 8:16 AM
hi Jaegu, one sec
that's a interesting error, its falling past the endpoint for /api/features
but the url looks right. - if the key were wrong, it throws a different error
when you go to http://localhost:3100 does it work?
is this a recent version of GrowthBook?
a

adventurous-vase-72101

02/11/2022, 8:34 AM
yes. http://localhost:3100 works fine. I’m using Growthbook latest docker image.
f

fresh-football-47124

02/11/2022, 8:40 AM
and I assume that regardless of the key, it still 404s?
can you share with me the full headers?
a

adventurous-vase-72101

02/11/2022, 8:42 AM
I get 404 regardless of the key.
f

fresh-football-47124

02/11/2022, 9:01 AM
what about other end points, like: http://localhost:3100/auth/hasorgs
I'm wondering if its something with Postman, does it do the same from the browser?
a

adventurous-vase-72101

02/11/2022, 9:14 AM
I’m actually testing to call Feature Definitions Endpoint via postman because I eventually want to get feature definitions in my Go server by calling that API.
So the client for API is not browser.
And it seems
<http://localhost:3100/auth/login>
endpoint works fine in browser. But when I call it from Postman, I get 400 error.
f

future-teacher-7046

02/11/2022, 12:29 PM
It looks like you are using an old build of GrowthBook. You can force docker to pull the latest image by doing
docker pull growthbook/growthbook
On recent versions, if you go to the API root (http://localhost:3100) you should see a build number and date. You can look at https://api.growthbook.io for an example.
a

adventurous-vase-72101

02/11/2022, 12:56 PM
Oh it seems setting Growthbook docker image tag like this doesn’t mean I’m using latest docker image(maybe I’m pulling locally-cached docker image). After manually running
docker pull growthbook/growthbook
command, problem was fixed! Thank you :)
13 Views