Why are my calls are being placed in an invalid route?