Forum Discussion

awaismair23's avatar
awaismair23
Copper Contributor
Mar 25, 2024

Microsoft Teams Bot Not Hitting API Endpoint After Running Locally

I have created a Microsoft Teams bot for group chat using NodeJS ad OpenAI, and it was working fine initially. I have connected it to my local NodeJS code, and when I mention the bot in the group chat, it hits the /api/messages endpoint and gives a response to the chat properly.

 

However, bot suddenly stopped working and the bot no longer hits the /api/messages endpoint when mentioned in the group chat. This issue persists even after restarting the code.

 

// Listen for incoming requests.

server.post("/api/messages", async (req, res) => {

await adapter.process(req, res, async (context) => {

await bot.run(context);

});

});

 

I would appreciate any insights or suggestions on how to resolve this issue. Thank you in advance for your help

Resources