# HTTP Outcalls Consensus Failure - Discord Webhook Request

**URL:** <https://forum.dfinity.org/t/http-outcalls-consensus-failure-discord-webhook-request/57458>\
**Category:** Language Support\
**Created:** [September 13, 2025, 8:49pm UTC](https://forum.dfinity.org/t/http-outcalls-consensus-failure-discord-webhook-request/57458 "2025-09-13T20:49:31Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![AbdulrahmanFiala](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/abdulrahmanfiala/32/30066_2.png) [@AbdulrahmanFiala](https://forum.dfinity.org/u/AbdulrahmanFiala)\
**Post date:** [September 13, 2025, 8:49pm UTC](https://forum.dfinity.org/t/http-outcalls-consensus-failure-discord-webhook-request/57458/1 "2025-09-13T20:49:32Z")

</div>

### **Issue Description**

I’m experiencing a consensus failure when making HTTP outcalls to Discord webhooks from my IC canister. The error indicates that replicas are returning different responses, preventing consensus from being reached. Additionally, I’m receiving multiple duplicate Discord messages instead of just one, suggesting the request is being processed multiple times.

**Error Details**

> Failed to send webhook: Request failed: (SysTransient, “No consensus could be reached. Replicas had different responses. Details: request\_id: 112432, timeout: 1757795577378071499, hashes: [b3ece9ff483b8675f8f0e65ad43bdaa40723544d9994b5125526db18728e094c: 1], [ab6b89f5d2d277ad9bf44acdfc8847ff85c5f68f70e195f5bcb701eabf905001: 1], [7753ca3b315ad95979d8a7de62214792e4ee3927161383ec39613a662e5ed4b5: 1], [699de35216ea55c658e203cb8f558a99e0e458c126af2d5a2dc54bd0f4042179: 1], [56a86bcecc3d04ff5d397f325aa3aad83db3b870bf906d74eed7342c6fbcf2b0: 1], [018bf18c4c6f09dadee41f7535415997dc1f24973a265a43010c3d0c0190ebc9: 1]”)

**Technical Setup**

- **Network** : Mainnet IC

- **Canister Type** : Rust canister

- **HTTP Request Configuration** :

- URL: [https://discordapp.com/api/webhooks/[webhook-id]/[webhook-token]](https://discordapp.com/api/webhooks/%5Bwebhook-id%5D/%5Bwebhook-token%5D)

- Method: POST

- Content-Type: application/json

- Max Response Bytes: 2000

- Cycles: 5,000,000,000 (5 billion)

**Code Implementation**

```rust
// HTTP Request Structure
let request = CanisterHttpRequestArgument {
    url: webhook_url.to_string(),
    method: HttpMethod::POST,
    headers: vec![
        HttpHeader {
            name: "Content-Type".to_string(),
            value: "application/json".to_string(),
        },
    ],
    body: Some(discord_payload.to_string().into_bytes()),
    max_response_bytes: Some(MAX_DISCORD_RESPONSE_BYTES),
    transform: None,
};

// Making the request
match http_request(request, DISCORD_REQUEST_CYCLES).await {
    Ok(_) => println!("Webhook sent successfully"),
    Err(e) => println!("Failed to send webhook: {}", e),
}

```

**GitHub Repo:**  
[github.com/AbdulrahmanFiala/chain\_notary](https://github.com/AbdulrahmanFiala/chain_notary)

---

<div class="post-metadata">

**Author:** ![LevanIlashvili](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/levanilashvili/32/26720_2.png) [@LevanIlashvili](https://forum.dfinity.org/u/LevanIlashvili)\
**Post date:** [September 13, 2025, 9:25pm UTC](https://forum.dfinity.org/t/http-outcalls-consensus-failure-discord-webhook-request/57458/3 "2025-09-13T21:25:30Z")

</div>

Problem is that HTTP outcalls must be idempotent  
([Here are docs](https://internetcomputer.org/docs/references/https-outcalls-how-it-works#post-requests-must-be-idempotent)). I believe that’s the reason you’re getting the error you mentioned.

However - there is a solution already - you don’t need necessarily need consensus for HTTP outcalls anymore. More details are here:

> [@Announcing Two Major Upgrades for HTTPS Outcalls: IPv4 Support + Non-Replicated Calls are now LIVE!](https://forum.dfinity.org/t/announcing-two-major-upgrades-for-https-outcalls-ipv4-support-non-replicated-calls-are-now-live/54580):
>
> Hello everyone, We’re thrilled to announce two major extensions for canister HTTPS outcalls that significantly expand the power and flexibility of the Internet Computer. These have been some of the most requested features from the community, and we can’t wait to see what you build with them! 1. Connect to the Entire Web: IPv4 Support is Here! rocketThe wait is over! Canisters can now make HTTPS outcalls to services hosted on both IPv6 and IPv4 addresses. How it Works The system is designed…

---

<div class="post-metadata">

**Author:** ![AbdulrahmanFiala](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/abdulrahmanfiala/32/30066_2.png) [@AbdulrahmanFiala](https://forum.dfinity.org/u/AbdulrahmanFiala)\
**Post date:** [September 13, 2025, 9:54pm UTC](https://forum.dfinity.org/t/http-outcalls-consensus-failure-discord-webhook-request/57458/5 "2025-09-13T21:54:04Z")

</div>

You’re spot on. I’ve been struggling with this issue for some time now, although I read that it has some security downsides but as long as the app works I couldn’t care much for the security downside, at least for now :”D

---

<div class="post-metadata">

**Author:** ![LevanIlashvili](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/levanilashvili/32/26720_2.png) [@LevanIlashvili](https://forum.dfinity.org/u/LevanIlashvili)\
**Post date:** [September 13, 2025, 9:56pm UTC](https://forum.dfinity.org/t/http-outcalls-consensus-failure-discord-webhook-request/57458/6 "2025-09-13T21:56:06Z")

</div>

Side question - Are you building this in scope of LegalHack? 😊

---

<div class="post-metadata">

**Author:** ![AbdulrahmanFiala](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/abdulrahmanfiala/32/30066_2.png) [@AbdulrahmanFiala](https://forum.dfinity.org/u/AbdulrahmanFiala)\
**Post date:** [September 13, 2025, 10:03pm UTC](https://forum.dfinity.org/t/http-outcalls-consensus-failure-discord-webhook-request/57458/7 "2025-09-13T22:03:05Z")

</div>

Nope, I’m participating in the World Computer Hacker League, actually our team ChainNotary won the 3rd place in the National competition round, and we’re now participating in the regional round. Wish us luck! What about you, are you currently participating in any ICP hackathons?

---

<div class="post-metadata">

**Author:** ![LevanIlashvili](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/levanilashvili/32/26720_2.png) [@LevanIlashvili](https://forum.dfinity.org/u/LevanIlashvili)\
**Post date:** [September 13, 2025, 10:06pm UTC](https://forum.dfinity.org/t/http-outcalls-consensus-failure-discord-webhook-request/57458/8 "2025-09-13T22:06:11Z")

</div>

Good luck 😊

Yeah, I’m building XFusion on WCHL as well. Hopefully we’ll meet in the final round 😊

[https://forum.dfinity.org/t/xfusion-many-tokens-one-trade/55977](https://forum.dfinity.org/t/xfusion-many-tokens-one-trade/55977)
