HTTPClientError when running platformio run --silent -e mega2560

I am trying to build my firmware for my Ender 3 3D printer with SKR Mini E3 V3 motherboard and keep getting the error below. I am using Visual Studio Code with autobuild Marlin and Platformio. It does it with Platformio independently as well. Is this a firewall issue? It seems like it has something to do with platformio not being able to connect to the internet. I know the board in the screenshot is not mine, but this is just an example and does it with all boards I try.

2024-02-28_15h47_46