I saw in another thread that it was recommend to logout and back in however when I try to log back in I get:
> netlify logout
Logging you out of Netlify. Come back soon!
> netlify login
Logging into your Netlify account...
FetchError: request to https://api.netlify.com/api/v1/oauth/tickets?client_id=d6f37de6614df7ae58664cfca524744d7380
7a377f5ee71f1a254f78412e3750 failed, reason: getaddrinfo EAI_AGAIN api.netlify.com
Code: EAI_AGAIN
I then tried to deploy using a PAT but got the same error message as before.
In my case it was an issue caused by Google DNS. It was rate-limiting netlify CLI (it doesn’t cache DNS?). Switched to Cloudflare (1.1.1.1) and the problem was solved.