Whenever I try and play a bot match, try the third stage of the tutorial, view a live match, or queue for the multiplayer, this error pops up.
I've tried restarting my PC, using a different wifi USB reciever, using my phone to hotspot my computer, redownloading, restarting my PC, and verifying files. Still doesn't work.
One thing of note is that my PC seems to have general issues with connecting to some online services (Ubisoft Connect, Halo Infinite etc) so it's probably partially a network issue on my end, but i can play other Valve games such as Dota 2 just fine so I'm not sure.