Endpoint Designer routes can't by save and it doesn't work

Hi Martin

Here is the network status from the Docker container and it can see the machine with the APIs and the port 5000 that is open:

root@c37867c9766c:/opt/tyk-gateway# ping 192.168.161.113
PING 192.168.161.113 (192.168.161.113) 56(84) bytes of data.
64 bytes from 192.168.161.113: icmp_seq=1 ttl=64 time=0.105 ms
64 bytes from 192.168.161.113: icmp_seq=2 ttl=64 time=0.055 ms
64 bytes from 192.168.161.113: icmp_seq=3 ttl=64 time=0.080 ms
64 bytes from 192.168.161.113: icmp_seq=4 ttl=64 time=0.061 ms
64 bytes from 192.168.161.113: icmp_seq=5 ttl=64 time=0.066 ms
^C
— 192.168.161.113 ping statistics —
5 packets transmitted, 5 received, 0% packet loss, time 3997ms
rtt min/avg/max/mdev = 0.055/0.073/0.105/0.019 ms
root@c37867c9766c:/opt/tyk-gateway# nmap 192.168.161.113

Starting Nmap 6.40 ( http://nmap.org ) at 2016-02-02 19:01 UTC
Nmap scan report for 192.168.161.113
Host is up (0.000015s latency).
Not shown: 986 closed ports
PORT STATE SERVICE
22/tcp open ssh
80/tcp open http
139/tcp open netbios-ssn
445/tcp open microsoft-ds
1198/tcp open cajo-discovery
3000/tcp open ppp
3389/tcp open ms-wbt-server
5000/tcp open upnp

Here is the error log at the time that I did the curl call:

time=“2016-02-02T19:15:24Z” level=info msg=“Reload signal received, reloading endpoints”
time=“2016-02-02T19:15:34Z” level=info msg=“Detected 4 APIs”
time=“2016-02-02T19:15:34Z” level=info msg=“–> Loading API: Portal Assets”
time=“2016-02-02T19:15:34Z” level=info msg=“----> Tracking: www.tyk-portal-test.com
time=“2016-02-02T19:15:34Z” level=info msg=“----> Checking security policy: Open”
time=“2016-02-02T19:15:34Z” level=info msg=“–> Loading API: Portal API”
time=“2016-02-02T19:15:34Z” level=info msg=“----> Tracking: www.tyk-portal-test.com
time=“2016-02-02T19:15:34Z” level=info msg=“----> Checking security policy: Open”
time=“2016-02-02T19:15:34Z” level=info msg=“–> Loading API: Portal”
time=“2016-02-02T19:15:34Z” level=info msg=“----> Tracking: www.tyk-portal-test.com
time=“2016-02-02T19:15:34Z” level=info msg=“----> Checking security policy: Open”
time=“2016-02-02T19:15:34Z” level=info msg=“–> Loading API: Test Api”
time=“2016-02-02T19:15:34Z” level=info msg=“----> Tracking: (no host)”
time=“2016-02-02T19:15:34Z” level=info msg=“----> Checking security policy: Open”
time=“2016-02-02T19:15:34Z” level=info msg=“Loading uptime tests…”
time=“2016-02-02T19:15:34Z” level=info msg=“Loaded 0 policies "
time=“2016-02-02T19:15:34Z” level=info msg=“API reload complete”
time=“2016-02-02T19:15:45Z” level=info msg=“Reload signal received, reloading endpoints”
time=“2016-02-02T19:15:55Z” level=info msg=“Detected 4 APIs”
time=“2016-02-02T19:15:55Z” level=info msg=”–> Loading API: Portal Assets"
time=“2016-02-02T19:15:55Z” level=info msg=“----> Tracking: www.tyk-portal-test.com
time=“2016-02-02T19:15:55Z” level=info msg=“----> Checking security policy: Open”
time=“2016-02-02T19:15:55Z” level=info msg=“–> Loading API: Portal API”
time=“2016-02-02T19:15:55Z” level=info msg=“----> Tracking: www.tyk-portal-test.com
time=“2016-02-02T19:15:55Z” level=info msg=“----> Checking security policy: Open”
time=“2016-02-02T19:15:55Z” level=info msg=“–> Loading API: Portal”
time=“2016-02-02T19:15:55Z” level=info msg=“----> Tracking: www.tyk-portal-test.com
time=“2016-02-02T19:15:55Z” level=info msg=“----> Checking security policy: Open”
time=“2016-02-02T19:15:55Z” level=info msg=“–> Loading API: Test Api”
time=“2016-02-02T19:15:55Z” level=info msg=“----> Tracking: (no host)”
time=“2016-02-02T19:15:55Z” level=info msg=“----> Checking security policy: Open”
time=“2016-02-02T19:15:55Z” level=info msg=“Loading uptime tests…”
time=“2016-02-02T19:15:55Z” level=info msg="Loaded 0 policies "
time=“2016-02-02T19:15:55Z” level=info msg=“API reload complete”

this is the response of tyk when I did the curl call:
juansapr@altair-dev:~/GIT/tyk/tyk_quickstart$ curl -H “Authorization: null” http://127.0.0.1/test-api/get

404 Not Found

Not Found

The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.

And this is how the route is configured right now:

Thank you in advance.

So the request is going through.

And that “Not Found” is not from Tyk, it doesn’t add any data or styling, that means the 404 is coming from your server.

So it might be the paths are wrong and you need to look at your target logs to see what the proxy is requesting.

Tyk strips the listen path from a request as it goes out, so that might be causing confusion.

M.

Hi Martin

Thank you so much for your help. Finally it is working.