pros v5 brain not connecting to controller

ERROR - pros.cli.upload:upload - V5 Controller doesn’t appear to be connected to a V5 Brain
System Version: 1.0.0-0.75
Product: CONTROLLER
Product Flags: 1 - pros-cli version:3.4.1
System Version: 1.0.0-0.75
Product: CONTROLLER
Product Flags: 1

I get an error if I try to connect my computer to the controller and upload code(using pros). However, I have tried wiring directly to the brain, and code transfers fine. Even if I connect to the controller, and use another wire to connect to the brain, it works, but the controller just refuses to send code to brain wirelessly. It doesn’t seem to be a controller issue as I’ve tried multiple controllers. I’m wondering if I messed up another piece of code somewhere