Javier_Trujillo | 2020-10-01 16:34:34 UTC | #1
Hi,
I'm trying to create a Guest WebChat session using this code:
CreateWebChatConversationRequest chatbody = new CreateWebChatConversationRequest() { DeploymentId = pcconfiguration.integrations.deployment.id, OrganizationId = pcconfiguration.integrations.organization.id, RoutingTarget = new WebChatRoutingTarget() { Language = pcconfiguration.integrations.others.language, TargetType = WebChatRoutingTarget.TargetTypeEnum.Queue, TargetAddress = pcconfiguration.integrations.queue[queue].name, Skills = skills, Priority = 5 }, MemberInfo = new GuestMemberInfo() { DisplayName = Request.Form["name"].ToString(), CustomFields = new Dictionary<string, string>() { { "customField1Label", "Account"}, { "customField1", Request.Form["customerid"].ToString()}, { "customField2Label", "IP Address"}, { "customField2", GetUserIP()}, { "customField3Label", "Agent"}, { "customField3", Request.Headers["User-Agent"].ToString()}
}, FirstName = fullname[0], LastName = (fullname.Length > 1) ? fullname[1] : "", AvatarImageUrl = "" } };
And sending the request using:
WebChatApi webChatApi = new WebChatApi(); chatInfo = webChatApi.PostWebchatGuestConversations(chatbody);
But I getting an unknows error in the ApiException with the message Error calling PostWebchatGuestConversations: {"message":"An internal conversation service error has occurred. Please contact support. Message: Internal server error","code":"internal.server.error","status":500,"contextId":"c346877d-6a00-406e-bf25-8f39f0c80a62","details":[],"errors":[]}
Are they any changes in the creation of a Guest WebChat session? This code where working previously but now I'm getting that error.
Thanks
Javier_Trujillo | 2020-10-01 17:11:26 UTC | #2
Hi All,
I found the problem, the Skills option was empty, this prompt up the error. Taking the Skill section from the CreateWebChatConversationRequest solve the issue.
Thanks
system | 2020-11-01 17:11:27 UTC | #3
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 8954