Skip to main content
Community site session details

Community site session details

Session Id : bsBouNgtaVr2aUrcPgu/Rv
Copilot Studio - General
Unanswered

Duplicated Http Post Request

Like (0) ShareShare
ReportReport
Posted on 24 Feb 2024 22:36:23 by 3

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.

  • adilei Profile Picture
    on 25 Feb 2024 at 17:47:14
    Re: Duplicated Http Post Request

    So, something in your function's response is the culprit? If it's on a public endpoint, feel free to pm me the details.

  • jangelRiveaux Profile Picture
    3 on 25 Feb 2024 at 17:27:44
    Re: Duplicated Http Post Request

    Thanks for the response. Following your sugestion I create a simple example and I think it work fine. 

  • adilei Profile Picture
    on 25 Feb 2024 at 11:35:34
    Re: Duplicated Http Post Request

    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:

     

    adilei_0-1708860873268.png

    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

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Loading complete