Wrangler login time-out

I want to try out developing some cloudflare workers but I can’t activate it.

I have tried with 2 different accounts to enable my wrangler login but it always goes into timeout with the following error.

Error: error sending request for url (https://api.cloudflare.com/client/v4/workers/token): operation timed out

On the cloudflare dashboard the token is created when I permit the request using the URL given from the wrangler login command.

I have googled and seen that this is a very frequent problem but there is no official fix that I can find.