Forum Discussion
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
1 Reply
- LanNguyenCopper Contributor
awaismair23 Were you able to resolve this, I have the same issue. After installing and uninstalling it for development, the bot suddenly stops working.