# Trouble logging in to CloudQuery receiving team listing error

**URL:** <https://community.cloudquery.io/t/trouble-logging-in-to-cloudquery-receiving-team-listing-error/167>\
**Category:** CloudQuery Plugins\
**Created:** [July 4, 2024, 6:11pm UTC](https://community.cloudquery.io/t/trouble-logging-in-to-cloudquery-receiving-team-listing-error/167 "2024-07-04T18:11:19Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![sweeping-ewe](https://avatars.discourse-cdn.com/v4/letter/s/9f8e36/32.png) [@sweeping-ewe](https://community.cloudquery.io/u/sweeping-ewe)\
**Post date:** [July 4, 2024, 6:11pm UTC](https://community.cloudquery.io/t/trouble-logging-in-to-cloudquery-receiving-team-listing-error/167/1 "2024-07-04T18:11:19Z")

</div>

Hello, team! I’m having trouble trying to login to CloudQuery. Whenever I try to login, I get the message:

```auto
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?

---

<div class="post-metadata">

**Author:** ![herman](https://sea1.discourse-cdn.com/flex001/user_avatar/community.cloudquery.io/herman/32/27_2.png) [@herman](https://community.cloudquery.io/u/herman)\
**Post date:** [July 4, 2024, 6:58pm UTC](https://community.cloudquery.io/t/trouble-logging-in-to-cloudquery-receiving-team-listing-error/167/2 "2024-07-04T18:58:42Z")

</div>

Hi @sweeping-ewe 👋

That’s strange. What does the error message say after “failed to list teams”? (If anything)

---

<div class="post-metadata">

**Author:** ![sweeping-ewe](https://avatars.discourse-cdn.com/v4/letter/s/9f8e36/32.png) [@sweeping-ewe](https://community.cloudquery.io/u/sweeping-ewe)\
**Post date:** [July 4, 2024, 7:20pm UTC](https://community.cloudquery.io/t/trouble-logging-in-to-cloudquery-receiving-team-listing-error/167/3 "2024-07-04T19:20:49Z")

</div>

Error: Failed to set current team on login: failed to list teams:

```auto
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.

---

<div class="post-metadata">

**Author:** ![herman](https://sea1.discourse-cdn.com/flex001/user_avatar/community.cloudquery.io/herman/32/27_2.png) [@herman](https://community.cloudquery.io/u/herman)\
**Post date:** [July 5, 2024, 9:38am UTC](https://community.cloudquery.io/t/trouble-logging-in-to-cloudquery-receiving-team-listing-error/167/4 "2024-07-05T09:38:26Z")

</div>

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](https://www.cloudflare.com/en-gb/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](https://cloudquery.typeform.com/to/UrgOydHV).

You could also confirm if it’s a firewall rule perhaps by running a curl request like the following:

```auto
curl -v 'https://api.cloudquery.io/plugins'

```

and checking whether it’s able to reach the API.

---

<div class="post-metadata">

**Author:** ![sweeping-ewe](https://avatars.discourse-cdn.com/v4/letter/s/9f8e36/32.png) [@sweeping-ewe](https://community.cloudquery.io/u/sweeping-ewe)\
**Post date:** [July 15, 2024, 4:59pm UTC](https://community.cloudquery.io/t/trouble-logging-in-to-cloudquery-receiving-team-listing-error/167/5 "2024-07-15T16:59:09Z")

</div>

It worked! I changed my firewall rules to allow the sync, thanks for the help.
