For others, there could be multiple reasons for the failure. You can change the default timeout of 300 seconds by using the -Timeout <seconds> option with the push command and see if it helps. If this is azure pipeline task, then please refer to this thread that talks about the same error.
Build fails at Nuget Push stage
Cassandra Tambongnchong
1
Reputation point
Build fails at Nuget push stage.Saying "Pushing took too long". This happened earlier this week i repeated the build and on the third trial, it succeeded. But today i have tried like eight times to no avail.
I will appreciate any ideas.