Hi all,
i’m setting up Tyk (on premise) with docker-compose installation and I’m getting some errors that can’t let me advance in my development.
First of all, I had to remap tyk_gateway listening ports to 81 and 8081 due to been already binded.
docker-compose.yml
tyk_gateway: image: tykio/tyk-gateway:latest ports: - "81:8080" - "8081:8080"
Then, I run setup.sh like this
./setup.sh 127.0.0.1 test-tyk.com
having modified /etc/hosts properly
After that, I follow setting-up instructions (api, key, policies, catalogue, portal) where Target URL is http://127.0.0.1:8080/ (my api)
The only thing I had to change in ‘common’ flow is that, when I want to navigate to portal, the URL has to be http://test-tyk.com:81/portal/ (remember I changed the port mapping)
Ok, let’s test it …
I have an endpoint in my API - > /me
When I test it in Postman it always response with 404 Not found
I tested
http://test-tyk.com:81/<listen-path>/me http://test-tyk.com:81/<listen-path>/ http://test-tyk.com:81/<listen-path>/oauth/confirm_access (another endpoint) http://test-tyk.com:81/<listen-path>/jksdfkjfdjhkddsj (non-existing endpoint
I’m testing with different authentication methods and gatewat seems to be ok cause it throws error responses when putting bad credentials or bad requests.
Looking on docker-compose logs, all it says is
tyk_pump_1 | time="Oct 26 09:23:38" level=info msg="Purging 1 records"
Just in case you’re thinking my API could be down … not. When I call it directly in Postman it responses correctly.
What I’m doing wrong?
Thanks in advance,
Carlos