Failing to test APIs, getting getaddrinfo EAI_AGAIN error

I am on the Test the APIs chapter, everything has gone well so far but I keep getting this error after I try testing with the aws-api-gateway-cli-test package.

npx: installed 106 in 8.335s
Authenticating with User Pool
Getting temporary credentials
getaddrinfo EAI_AGAIN cognito-identity.eu-central-1_5dyvqpx0d.amazonaws.com

This looks like a DNS related issue? Can you ensure your local computer is working properly for other websites?