Hello, I'm new to Copilot! Currently, I'm in the process of building a simple bot. It takes messages from users, sends them to an Azure Function via an HTTP POST request, and then forwards the service response back to the client.
However, I've encountered an issue where Copilot seems to be sending the request twice. I've implemented a check in my service to handle duplicate requests, but even when I return a 409 error to Copilot for duplicated requests, it only displays the second request and stops there.
I'm unsure why this behavior is occurring. Could anyone provide guidance on how to troubleshoot and resolve this issue? Below is an image of my Copilot flow for reference.
So, something in your function's response is the culprit? If it's on a public endpoint, feel free to pm me the details.
Thanks for the response. Following your sugestion I create a simple example and I think it work fine.
Not sure if it's a product issue or something to do with how your endpoint is designed (or a combination of both?). Can you reproduce with a mock service?
For example, here is a mock endpoint I created: https://app.beeceptor.com/console/mcs-http/todos. Calling this endpoint from an HTTP action in MCS does not result in two calls:
kind: AdaptiveDialog
beginDialog:
kind: OnRecognizedIntent
id: main
intent:
triggerQueries:
- http
actions:
- kind: HttpRequestAction
id: AFFTwf
url: https://mcs-http.free.beeceptor.com/todos
response: Topic.Var1
responseSchema:
kind: Table
properties:
completed: Boolean
id: Number
title: String
Ekta Gupta
4
ricardodesouza
2
L-1234567-0
2