0

Need some help regarding bot deployment enter image description here 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

1 Answer 1

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');
}
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.