You're using the v4 endpoint to get routes, but this v4 is not existed.
const apiVersionParam = this.url === 'https://quote-api.jup.ag' ? '/v4' : '';
Should replace v4 with v6 same as getQuote function.
Below is from getQuote
const apiVersionParam = this.url === 'https://quote-api.jup.ag' ? '/v6' : '';