Hello, team! I’m having trouble trying to login to CloudQuery. Whenever I try to login, I get the message:
Error: failed to set current team on login: failed to list teams...
I tried using the switch team or the sync command, but it seems that even with the correct access token, the login is not successful. Is there a documentation where I can access the errors and troubleshoot?
Hi @sweeping-ewe
That’s strange. What does the error message say after “failed to list teams”? (If anything)
Error: Failed to set current team on login: failed to list teams:
GET "https://api.cloudquery.io/teams?page=1&per_page=100": GET https://api.cloudquery.io/teams?page=1&per_page=100 giving up after 5 attempt(s): Get "https://api.cloudquery.io/teams?page=1&per_page=100": dial tcp 172.67.xx./xxx:443: i/o timeout
I have firewall rules in my company that may be interfering with the dial, my guess is that.
Yeah, that looks like a firewall rule blocking the request Are you running the CloudQuery CLI locally?
We currently use Cloudflare for our API, so your firewall would need to allow api.cloudquery.io
, or the IP ranges listed here: Cloudflare IPs.
If this doesn’t work for you, we’ll be happy to help you find a solution if you reach out to us on our contact form: Contact Form.
You could also confirm if it’s a firewall rule perhaps by running a curl request like the following:
curl -v 'https://api.cloudquery.io/plugins'
and checking whether it’s able to reach the API.
It worked! I changed my firewall rules to allow the sync, thanks for the help.