admin管理员组

文章数量:1289632

Need some help regarding bot deployment Steps We Have Done -

  1. Downloaded zip of code from Azure Open AI Service.
  2. After deployment of the downloaded zip to Azure.
  3. Azure Bot service is created automatically.
  4. There are 3 channels in this - 1. Direct Line, 2. Teams App, 3. Web Chat.
  5. Bot working fine in Teams App.
  6. For Direct Line & Web Chat giving error. -- There was an error sending this message to your bot: HTTP status code Unauthorized

Need some help regarding bot deployment Steps We Have Done -

  1. Downloaded zip of code from Azure Open AI Service.
  2. After deployment of the downloaded zip to Azure.
  3. Azure Bot service is created automatically.
  4. There are 3 channels in this - 1. Direct Line, 2. Teams App, 3. Web Chat.
  5. Bot working fine in Teams App.
  6. For Direct Line & Web Chat giving error. -- There was an error sending this message to your bot: HTTP status code Unauthorized
Share Improve this question asked Feb 19 at 18:18 Devang ZalaDevang Zala 971 silver badge12 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

When test in Web Chat, it doesn't include an authorization header in the request to the bot. However, the downloaded project contains below logic, that returns Unauthorized response in this case. You can remove this logic in order to test in Web Chat.

if (!req.headers.authorization && process.env.RUNNING_ON_AZURE === '1') {
    return res.send(401, 'unauthorized');
}

本文标签: automationAzure Bot deployment using teams toolkitStack Overflow