Home

500 - Internal Server Error while creating team or channel via Graph API

%3CLINGO-SUB%20id%3D%22lingo-sub-359090%22%20slang%3D%22en-US%22%3E500%20-%20Internal%20Server%20Error%20while%20creating%20team%20or%20channel%20via%20Graph%20API%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-359090%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20trying%20to%20create%20a%20Team%20and%20Channel%20using%20the%20Microsoft%20Graph%20v1.0%20APIs%20and%20getting%20500%20-%20Internal%20Server%20Error%20for%20both.%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3E%3CSTRONG%3E1)%20Creating%20Team%3C%2FSTRONG%3E%3CBR%20%2F%3EI%20successfully%20created%20an%20O365%20group%2C%20and%20am%20not%20using%20the%20groupId%20to%20create%20a%20team.%20My%20request%20looks%20like%20below%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPUT%20%3CA%20href%3D%22https%3A%2F%2Fgraph.microsoft.com%2Fv1.0%2Fgroups%2F%7BO365_groupId%7D%2Fteam%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgraph.microsoft.com%2Fv1.0%2Fgroups%2F%7BO365_groupId%7D%2Fteam%3C%2FA%3E%3C%2FP%3E%3CP%3E%3CBR%20%2F%3EHeaders%3AAuthentication%3A%20Bearer%20%7Btoken%7DContent-Type%3A%20application%2FjsonBody%3A%3C%2FP%3E%3CPRE%3E%7B%3CBR%20%2F%3E%20%20%22memberSettings%22%3A%20%7B%3CBR%20%2F%3E%20%20%20%20%22allowCreateUpdateChannels%22%3A%20true%3CBR%20%2F%3E%20%20%7D%2C%3CBR%20%2F%3E%20%20%22messagingSettings%22%3A%20%7B%3CBR%20%2F%3E%20%20%20%20%22allowUserEditMessages%22%3A%20true%2C%3CBR%20%2F%3E%20%20%20%20%22allowUserDeleteMessages%22%3A%20true%3CBR%20%2F%3E%20%20%7D%2C%3CBR%20%2F%3E%20%20%22funSettings%22%3A%20%7B%3CBR%20%2F%3E%20%20%20%20%20%22allowGiphy%22%3A%20true%2C%3CBR%20%2F%3E%20%20%20%20%20%22giphyContentRating%22%3A%20%22strict%22%3CBR%20%2F%3E%20%20%7D%3CBR%20%2F%3E%7D%3C%2FPRE%3E%3CP%3EThe%20response%20I%20am%20getting%20is%20as%20below%3A%3C%2FP%3E%3CPRE%3E%7B%3CBR%20%2F%3E%20%20%22error%22%3A%20%7B%3CBR%20%2F%3E%20%20%22code%22%3A%20%22GeneralException%22%2C%3CBR%20%2F%3E%20%20%22message%22%3A%20%22Creating%20team%20in%20skype%20failed%20with%20error%3A%20Failed%20to%20execute%20Skype%20backend%20request%20CreateThreadRequest.%22%2C%3CBR%20%2F%3E%20%20%22innerError%22%3A%20%7B%3CBR%20%2F%3E%20%20%20%20%22request-id%22%3A%20%22bfc2aa93-fa31-4804-a854-5a8160894e26%22%2C%3CBR%20%2F%3E%20%20%20%20%22date%22%3A%20%222019-03-01T16%3A02%3A52%22%3CBR%20%2F%3E%20%20%20%7D%3CBR%20%2F%3E%20%20%7D%3CBR%20%2F%3E%7D%3C%2FPRE%3E%3CP%3E%3CBR%20%2F%3E%3CSTRONG%3E2)%20Creating%20Channel%3CBR%20%2F%3E%3C%2FSTRONG%3EI%20am%20trying%20to%20create%20a%20channel%20for%20an%20%22existing%22%20team%2C%20using%20the%20associated%20O365%20groupId%20linked%20with%20this%20team%20as%20the%20below%20API%3A%3CBR%20%2F%3E%3CBR%20%2F%3EPOST%26nbsp%3B%3CSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fgraph.microsoft.com%2Fv1.0%2Fteams%2F%7BO365_groupId_linked_with_an_existing_team%7D%2Fchannels%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgraph.microsoft.com%2Fv1.0%2Fteams%2F%7BO365_groupId_linked_with_an_existing_team%7D%2Fchannels%3C%2FA%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHeaders%3A%3CBR%20%2F%3EAuthentication%3A%20Bearer%20%7Btoken%7D%3CBR%20%2F%3EContent-Type%3A%20application%2Fjson%3CBR%20%2F%3E%3CBR%20%2F%3EBody%3A%3C%2FP%3E%3CPRE%3E%7B%3CBR%20%2F%3E%20%20%22displayName%22%3A%20%22New%20Channel%22%2C%3CBR%20%2F%3E%20%20%22description%22%3A%20%22This%20channel%20is%20created%20under%20an%20existing%20team!%22%3CBR%20%2F%3E%7D%3C%2FPRE%3E%3CP%3E%26nbsp%3BThe%20response%20I%20am%20getting%20is%20as%20below%3A%3C%2FP%3E%3CPRE%3E%7B%3CBR%20%2F%3E%20%20%22error%22%3A%20%7B%3CBR%20%2F%3E%20%20%22code%22%3A%20%22GeneralException%22%2C%3CBR%20%2F%3E%20%20%22message%22%3A%20%22Unable%20to%20fetch%20team%20thread%3A%2019%3Adea03e979f8e4924ab034e1e1bea2810%40thread.skype.%20Exception%3A%20Microsoft.SkypeSpaces.MiddleTier.Common.ServiceException%3A%20Failed%20to%20execute%20Skype%20backend%20request%20GetThreadS2SRequest.%5Cr%5Cn%20at%20Microsoft.Skype.Chat.WebServices.Requests.ServiceRequestBase%601.%3CEXECUTEHTTPREQUEST%3Ed__27.MoveNext()%20in%20F%3A%5C%5Cts-service-103%5C%5C_work%5C%5C24%5C%5Cs%5C%5CSource%5C%5CBackendServices%5C%5CSkypeChatService%5C%5CRequests%5C%5CServiceRequestBase.cs%3Aline%20451%5Cr%5Cn---%20End%20of%20stack%20trace%20from%20previous%20location%20where%20exception%20was%20thrown%20---%5Cr%5Cn%20at%20System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()%5Cr%5Cn%20at%20System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task%20task)%5Cr%5Cn%20at%20Microsoft.Skype.Chat.WebServices.Requests.ServiceRequestBase%601.%3CEXECUTE%3Ed__16.MoveNext()%20in%20F%3A%5C%5Cts-service-103%5C%5C_work%5C%5C24%5C%5Cs%5C%5CSource%5C%5CBackendServices%5C%5CSkypeChatService%5C%5CRequests%5C%5CServiceRequestBase.cs%3Aline%20116%5Cr%5Cn---%20End%20of%20stack%20trace%20from%20previous%20location%20where%20exception%20was%20thrown%20---%5Cr%5Cn%20at%20System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()%5Cr%5Cn%20at%20System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task%20task)%5Cr%5Cn%20at%20Microsoft.Skype.Chat.WebServices.SkypeChatService.%3CGETTHREADONBEHALFOFUSER%3Ed__69.MoveNext()%20in%20F%3A%5C%5Cts-service-103%5C%5C_work%5C%5C24%5C%5Cs%5C%5CSource%5C%5CBackendServices%5C%5CSkypeChatService%5C%5CSkypeChatService.cs%3Aline%20733%5Cr%5Cn---%20End%20of%20stack%20trace%20from%20previous%20location%20where%20exception%20was%20thrown%20---%5Cr%5Cn%20at%20System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()%5Cr%5Cn%20at%20System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task%20task)%5Cr%5Cn%20at%20Microsoft.SkypeSpaces.MiddleTier.Provider.Utilities.TeamSkypeHelper.%3CGETTEAMTHREADINTERNAL%3Ed__39.MoveNext()%20in%20F%3A%5C%5Cts-service-103%5C%5C_work%5C%5C24%5C%5Cs%5C%5CSource%5C%5CTeamsAndChannels%5C%5CTeamsAndChannels.Providers%5C%5CUtilities%5C%5CTeamSkypeHelper.cs%3Aline%201091%22%2C%3CBR%20%2F%3E%20%20%22innerError%22%3A%20%7B%3CBR%20%2F%3E%20%20%20%20%22request-id%22%3A%20%2250fb8d1b-d7d9-4ffd-86e7-673dbb233ee5%22%2C%3CBR%20%2F%3E%20%20%20%20%22date%22%3A%20%222019-03-01T16%3A03%3A48%22%3CBR%20%2F%3E%20%20%20%20%7D%3CBR%20%2F%3E%20%20%7D%3CBR%20%2F%3E%7D%3C%2FGETTEAMTHREADINTERNAL%3E%3C%2FGETTHREADONBEHALFOFUSER%3E%3C%2FEXECUTE%3E%3C%2FEXECUTEHTTPREQUEST%3E%3C%2FPRE%3E%3CP%3E%3CBR%20%2F%3EKindly%20help%20with%20what%20the%20above%20exceptions%20indicate%20and%20what%20the%20possible%20fix%20can%20be.%3CBR%20%2F%3E%3CBR%20%2F%3EThanks%2C%3CBR%20%2F%3EPaulomi%20Mahidharia%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-359090%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EMicrosoft%20Teams%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-785117%22%20slang%3D%22en-US%22%3ERe%3A%20500%20-%20Internal%20Server%20Error%20while%20creating%20team%20or%20channel%20via%20Graph%20API%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-785117%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F293305%22%20target%3D%22_blank%22%3E%40paulomimahidharia%3C%2FA%3E%26nbsp%3Bdid%20you%20manage%20to%20figure%20this%20out%3F%20encountering%20the%20same%20issue%20when%20trying%20to%20create%20a%20team%3C%2FP%3E%3C%2FLINGO-BODY%3E
Deleted
Not applicable

Hi,

 

I am trying to create a Team and Channel using the Microsoft Graph v1.0 APIs and getting 500 - Internal Server Error for both. 

1) Creating Team
I successfully created an O365 group, and am not using the groupId to create a team. My request looks like below:

 

PUT https://graph.microsoft.com/v1.0/groups/{O365_groupId}/team


Headers:
Authentication: Bearer {token}
Content-Type: application/json

Body:

{
"memberSettings": {
"allowCreateUpdateChannels": true
},
"messagingSettings": {
"allowUserEditMessages": true,
"allowUserDeleteMessages": true
},
"funSettings": {
"allowGiphy": true,
"giphyContentRating": "strict"
}
}

The response I am getting is as below:

{
"error": {
"code": "GeneralException",
"message": "Creating team in skype failed with error: Failed to execute Skype backend request CreateThreadRequest.",
"innerError": {
"request-id": "bfc2aa93-fa31-4804-a854-5a8160894e26",
"date": "2019-03-01T16:02:52"
}
}
}


2) Creating Channel
I am trying to create a channel for an "existing" team, using the associated O365 groupId linked with this team as the below API:

POST https://graph.microsoft.com/v1.0/teams/{O365_groupId_linked_with_an_existing_team}/channels

 

Headers:
Authentication: Bearer {token}
Content-Type: application/json

Body:

{
"displayName": "New Channel",
"description": "This channel is created under an existing team!"
}

 The response I am getting is as below:

{
"error": {
"code": "GeneralException",
"message": "Unable to fetch team thread: 19:dea03e979f8e4924ab034e1e1bea2810@thread.skype. Exception: Microsoft.SkypeSpaces.MiddleTier.Common.ServiceException: Failed to execute Skype backend request GetThreadS2SRequest.\r\n at Microsoft.Skype.Chat.WebServices.Requests.ServiceRequestBase`1.<ExecuteHttpRequest>d__27.MoveNext() in F:\\ts-service-103\\_work\\24\\s\\Source\\BackendServices\\SkypeChatService\\Requests\\ServiceRequestBase.cs:line 451\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at Microsoft.Skype.Chat.WebServices.Requests.ServiceRequestBase`1.<Execute>d__16.MoveNext() in F:\\ts-service-103\\_work\\24\\s\\Source\\BackendServices\\SkypeChatService\\Requests\\ServiceRequestBase.cs:line 116\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at Microsoft.Skype.Chat.WebServices.SkypeChatService.<GetThreadOnBehalfOfUser>d__69.MoveNext() in F:\\ts-service-103\\_work\\24\\s\\Source\\BackendServices\\SkypeChatService\\SkypeChatService.cs:line 733\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at Microsoft.SkypeSpaces.MiddleTier.Provider.Utilities.TeamSkypeHelper.<GetTeamThreadInternal>d__39.MoveNext() in F:\\ts-service-103\\_work\\24\\s\\Source\\TeamsAndChannels\\TeamsAndChannels.Providers\\Utilities\\TeamSkypeHelper.cs:line 1091",
"innerError": {
"request-id": "50fb8d1b-d7d9-4ffd-86e7-673dbb233ee5",
"date": "2019-03-01T16:03:48"
}
}
}


Kindly help with what the above exceptions indicate and what the possible fix can be.

Thanks,
Paulomi Mahidharia

 

1 Reply

@Deleted did you manage to figure this out? encountering the same issue when trying to create a team

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
16 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
flashing a white screen while open new tab
cntvertex in Discussions on
11 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
28 Replies