Forum Discussion

prashantguptag's avatar
prashantguptag
Brass Contributor
Feb 25, 2020

Graph API get private channel connected site url failing

I am following this article Manage lifecycle of private channels to get private channel's site url using App-Only authentication. As per the article, its giving the desired result for this first request

"GET https://graph.microsoft.com/beta/teams/<group_id>/channels?$filter=membershipType eq 'private'"

 but for second request

GET https://graph.microsoft.com/beta/teams/<group_id>/channels/<channel_id>/filesFolder

 its throwing error  "502 Bad Gateway". Can anyone suggest what could be the issue? 

Error: 

{ "error": { "code": "BadGateway", "message": "Failed to execute backend request.", "innerError": { "request-id": "6ab8032b-8d33-4543-b2f1-0e13978e9699", "date": "2020-02-05T07:00:11" } } }

Jeremy Thake any tip why its failing?

    • webfort's avatar
      webfort
      Copper Contributor

      Trinetra-MSFT 

      I get the same trying to create a channel with members as per documentation 

      {
        "@odata.type": "#Microsoft.Teams.Core.channel",
        "membershipType": "private",
        "displayName": "My First Private Channel",
        "description": "This is my first private channels",
        "members":
           [
              {
                 "@odata.type":"#microsoft.graph.aadUserConversationMember",
                 "user@odata.bind":"https://graph.microsoft.com/beta/users('{9b5c5cc9-cafb-4fe4-a58d-5bdc96ea7712}')",
                 "roles":["owner"]
              }
           ]
      }
    • prashantguptag's avatar
      prashantguptag
      Brass Contributor

      Trinetra-MSFT Good to know. Thanks.

      Is there any place where do you follow these issues and report the fix for e.g. in github?

Resources