Connection timed out

i try this api :/tyk/keys/create, want to get a key, but get this error ;
{“Status”:“Error”,“Message”:“Failed to save new session object to Tyk: Failed to create key: Post http://localhost:8080/tyk/keys/create: dial tcp getsockopt: connection timed out”,“Meta”:null}
Closed connection [connectionId{localValue:24, serverValue:13}] to because it is past its maximum allowed idle time
I upgraded Mongo from 2.6 to 3.4 before;I check the config ,all right;
so I don’t know why I can’t connect the mongo by this api;