Hi, I’m trying to access <Feature Definitions Endp...
# ask-questions
a
Hi, I’m trying to access Feature Definitions Endpoint but I get following error. Am I missing something?
f
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
yes. http://localhost:3100 works fine. I’m using Growthbook latest docker image.
f
and I assume that regardless of the key, it still 404s?
can you share with me the full headers?
a
I get 404 regardless of the key.
f
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
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
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
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 :)