I’m using Tyk Quickstart/Docker and getting a very non-verbose error in response to curling an API I’m exposing through Tyk (“error”: “There was a problem proxying the request”). It seems that Tyk Gateway is not logging to /var/log/.
Any advice on making the tyk-gateway Docker container output to a log file?
The gateway logs to stdout on the containers since usually a dockerized command is not run as a daemon, you can just tail the docker container logs to see what is going on in real time:
Obviously replace the gateway container name with the one for your system.
In Ubuntu, if daemonized, logs are under var/log/upstart, on RHEL, if daemonized, under /var/log/.
This error is a connection error, usually something like “connection refused” or “no route to host”, normally down on the tcp layer. The gateway output will tell you more.
Usually with docker containers outbound ports are all open, so I doubt it, plus that would be a connection refused, here you are getting a timeout. Have you tried curling from within the container to see if outbound connections to your various hosts is possible?
Well looks ok to me, you don’t need to test the other containers.
Since this is an IO timeout it’s networking related, have you set the correct domain name in your API configuration? What if you set the target to http://example.com or something similar?