Cant get vagrant to work with a proxy

I can’t get vagrant to work with any proxy.
I can’t seem to get the proxy env vars to work when it comes to vagrant.
I keep getting 404s. with or without a proxy.
I have set http_proxy and https_proxy to'. I'm using vagrant version 2.2.19. When I try to vagrant uporvagrant plugin install` I get:

The box 'generic/alpine315' could not be found or
could not be accessed in the remote catalog. If this is a private
box on HashiCorp's Vagrant Cloud, please verify you're logged in via
`vagrant login`. Also, please double-check the name. The expanded
URL and error message are shown below:

URL: [""]
Error: The requested URL returned error: 404

I tried using proxychains and torsocks. I still get the same result:

There was an error while downloading the metadata for this box.
The error message is shown below:

The requested URL returned error: 404

Do I need to do anything else?