admin管理员组

文章数量:1294532

Ms Teams App's interface

// 20250212172704
// :0bc21a2c-b9c1-4bd5-9989-0c5aaf324d64/invoke

{
  "errorCode": 911,
  "message": "Authentication failed.",
  "standardizedError": {
    "errorCode": 911,
    "errorSubCode": 1,
    "errorDescription": "Authentication failed."
  }
}

I have build a custom app for MS teams but when I am about to use the Bot SDK's funcationality such as adaptive cards , Search , message Extensions shows this above error I have checked all feilds

I have reviewd all the permissions and the bot has sufficient permissions also the bot implementation seems quite good below is the code for my bot backend

import { TeamsActivityHandler, CardFactory } from 'botbuilder';
import axios from 'axios';
import dotenv from 'dotenv';

dotenv.config();


export class TeamsMessagingExtensionsActionBot extends TeamsActivityHandler {
    constructor() {
        super();
        

        this.onInvokeActivity = async (context) => {
            const commandId = context.activity.valuemandId;
            console.log(`

本文标签: MS Teams bot configuration Bad gateway(502) Error Code 911Stack Overflow