Skip to content

not able get read sync groups #560

Closed as not planned
Closed as not planned

Description

@venky999

I am trying to read AD groups that are synced from Azure but I am getting 502 error from data source but I can see the groups synced when I check from GitHub GUI

Terraform Version

Terraform v0.13.0

Affected Resource(s)

data "github organization team sync groups"

Terraform Configuration Files

data "github_organization_team_sync_groups" "all-groups" {}

resource "random_pet" "groups" {
  for_each = { for g in data.github_organization_team_sync_groups.all-groups.groups : g.group_name => g }
  keepers = {
    group_id          = each.value.group_id
    group_name        = each.value.group_name
    group_description = each.value.group_description
  }
}

Panic Output

  |  
  |  Error: GET https://api.github.com/orgs/MYORG/team-sync/groups?page=X%27XXXXX0%27&per_page=100: 502 Server Error []
  |  
  | on data.tf line 11, in data "github_organization_team_sync_groups" "all-groups":
  | 11: data "github_organization_team_sync_groups" "all-groups" {}
  |  
  |  
  | make: *** [build] Error 1

Expected Behavior

Should get list of synced AD groups

Actual Behavior

Failed to read sync ad groups

Steps to Reproduce

Please list the steps required to reproduce the issue, for example:

  1. terraform plan

Activity

  1. changed the title [-]not able get ad sync groups[/-] [+]not able get read sync groups[/+] on Sep 24, 2020
  2. added
    Type: Bug
    on Nov 25, 2020
  3. github-actions commented on Dec 8, 2022

    @github-actions

    👋 Hey Friends, this issue has been automatically marked as stale because it has no recent activity. It will be closed if no further activity occurs. Please add the Status: Pinned label if you feel that this issue needs to remain open/active. Thank you for your contributions and help in keeping things tidy!

  4. added
    Status: Stale
    on Dec 8, 2022
  5. removed
    Status: Stale
    on Dec 9, 2022
  6. btsteve commented on Jan 23, 2023

    @btsteve

    I am having a similar problem terraform just keeps trying to read and never completes.
    I do not get the panic. and adding DEBUG does not give any additional info.
    Terraform Version 1.3.7

  7. added
    Status: Up for grabs
    on Feb 3, 2023
  8. moved this to 🆕 Triage in 🧰 Octokit Activeon Feb 3, 2023
  9. moved this from 🆕 Triage to 🔥 Backlog in 🧰 Octokit Activeon Feb 10, 2023
  10. kaefferlein commented on Aug 3, 2023

    @kaefferlein

    I can confirm that issue with terraform version 1.5.1

  11. added
    hacktoberfest
    on Sep 20, 2023
  12. devopsrick commented on Oct 6, 2023

    @devopsrick

    We get frequent 500 errors using the github_organization_team_sync_groups data source. Is anything being done on the backend to make this api call more reliable?

  13. devopsrick commented on Oct 9, 2023

    @devopsrick

    data github_organization_team_sync_groups resource has begun throwing 500s every refresh due to 429 results from the provider (Okta in my case). Is there any way the provider can handle these errors more gracefully?

  14. github-actions commented on Jul 6, 2024

    @github-actions

    👋 Hey Friends, this issue has been automatically marked as stale because it has no recent activity. It will be closed if no further activity occurs. Please add the Status: Pinned label if you feel that this issue needs to remain open/active. Thank you for your contributions and help in keeping things tidy!

  15. added
    Status: Stale
    on Jul 6, 2024
  16. moved this from 🔥 Backlog to ✅ Done in 🧰 Octokit Activeon Jul 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: StaleStatus: Up for grabsType: Buggithub_enterprisehacktoberfestr/team_sync

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions