I'm trying to build an apk to test my app but every time I run eas build i get the same error. I've already searched everywhere and can't find a solution.

Running:
expo update
solved this problem for me and I was able to successfully run eas build again. I believe there were incompatible packages installed that needed to be updated.
I found the problem, it looks like my ISP was blocking the requisition, using VPN solved the problem