Why are my calls being placed in an invalid route?