Getting truffle error

UPDATE:
Did try to change the rpc url, but problem still is there. :confused:

old

Did take a break from smart contract development for a month. Today I wanted to connect truffle to mumbai. It will connect, but will continue to throw this error:

It literally will not let me do anything. migrations fail and the console just continues to spit out the same error. I did update all packages, including hdwallet provider.
This really leaves me puzzled :frowning:

Cannot find anything online. Can someone enlighten me please?

require("babel-register");
require("babel-polyfill");

//const { mnemonic } = require('./secrets.json');
const HDWalletProvider = require("truffle-hdwallet-provider");
//const mnemonic = process.env.MNEMONIC;
const mnemonic =
  "....";
var networkId = process.env.npm_package_config_ganache_networkId;
var gasPrice = process.env.npm_package_config_ganache_gasPrice;
var gasLimit = process.env.npm_package_config_ganache_gasLimit;

module.exports = {
  networks: {
    development: {
      host: "127.0.0.1",
      port: 7545,
      network_id: 5777, //networkId
      gas: 6500000, //gasLimit
      gasPrice: 25000000000, //gasPrice
    },
    matic: {
      provider: () =>
        new HDWalletProvider(mnemonic, `https://rpc-mumbai.matic.today`),
      network_id: 80001,
      confirmations: 2,
      timeoutBlocks: 200,
      skipDryRun: true,
    },
  },
  contracts_directory: "./src/contracts/src/",
  contracts_build_directory: "./src/contracts/abis/",
  migrations_directory: "./src/contracts/migrations/",
  compilers: {
    solc: {
      version: "0.8.0", //change from 0.6.12 to 0.8.0, reason: f. e. safemath is now native, also: since Istanbul fork, transfer is deprecated!
      optimizer: {
        enabled: true,
        runs: 200,
      },
    },
  },
  // Only to enable when wanting to test gas because otherwise it slows down the tests A LOT
  // mocha: {
  //   reporter: "eth-gas-reporter",
  // },
};

:1234: Code to reproduce


:computer: Environment

Truffle