Add err into next fuction

When use connect-timeout plugins, the router will execute twice.