# Desktop Agent (MacOS) throwing 400 Bad Request but web agent seems ok

**URL:** <https://community.postman.com/t/desktop-agent-macos-throwing-400-bad-request-but-web-agent-seems-ok/40226>\
**Category:** Help Hub\
**Tags:** desktop-agent\
**Created:** [October 19, 2022, 11:59am UTC](https://community.postman.com/t/desktop-agent-macos-throwing-400-bad-request-but-web-agent-seems-ok/40226 "2022-10-19T11:59:29Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![sochun2424](https://avatars.discourse-cdn.com/v4/letter/s/8edcca/32.png) [@sochun2424](https://community.postman.com/u/sochun2424)\
**Post date:** [October 19, 2022, 11:59am UTC](https://community.postman.com/t/desktop-agent-macos-throwing-400-bad-request-but-web-agent-seems-ok/40226/1 "2022-10-19T11:59:29Z")

</div>

Hi all,

I’m new to Postman, I find it very powerful and I love it.

I found a problem when using Desktop Agent. When I make the same POST request with both Web Agent & Desktop Agent, Desktop Agent always throw me an error (400 Bad Request).

The Header & Body are exactly same between Web & Desktop Agent. Please refer to the screenshot below:

 ![Screenshot 2022-10-19 at 7.49.58 PM](https://us1.discourse-cdn.com/getpostman/original/3X/0/4/04e1cb4f20722e8c029b16fe0285553e2f761fa9.png)

 ![Screenshot 2022-10-19 at 7.52.09 PM](https://us1.discourse-cdn.com/getpostman/original/3X/f/c/fc35fd537641e02486443c899b5a680cb3e969c8.png)

Here’s the payload of the body that’s being sent, nothing seems wrong:

```auto
{
    "users": [
        {
            "identifiers": {
                "email": "kahchon@telegmail.com"
            },
            "events": [
                {
                    "event_name": "purchase",
                    "timestamp": "2019-10-10T14:00:00Z",
                    "event_params": {
                        "product_id": "2100",
                        "unit_price": 99.00,
                        "unit_sale_price": 99.00,
                        "event_group_id": "test19",
                        "currency": "MYR"
                    }
                }
            ]
        }
    ]
}

```

I have tried googling around but I can’t find anyone that have similar problem as mine. Please advice.

---

<div class="post-metadata">

**Author:** ![michaelderekjones](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/michaelderekjones/32/14819_2.png) [@michaelderekjones](https://community.postman.com/u/michaelderekjones)\
**Post date:** [October 19, 2022, 1:31pm UTC](https://community.postman.com/t/desktop-agent-macos-throwing-400-bad-request-but-web-agent-seems-ok/40226/2 "2022-10-19T13:31:07Z")

</div>

When you send the request using the web client, it sends it from a Postman IP address over the Internet.

When you send the request from the desktop client, it sends it from the IP address of the device where you have the desktop client installed. If behind a corporate firewall, it will be the external IP address of your firewall.

The 400 bad request seems to be coming from Cloudflare.

Is your API hidden behind a Cloudflare proxy or is this an internal proxy\firewall that is blocking the request. If behind a corporate firewall, you may need to ask your networks team to allow access.

---

<div class="post-metadata">

**Author:** ![sochun2424](https://avatars.discourse-cdn.com/v4/letter/s/8edcca/32.png) [@sochun2424](https://community.postman.com/u/sochun2424)\
**Post date:** [October 20, 2022, 1:47am UTC](https://community.postman.com/t/desktop-agent-macos-throwing-400-bad-request-but-web-agent-seems-ok/40226/3 "2022-10-20T01:47:56Z")

</div>

Hi Mdjones,

Thank you for the reply. Based on my findings, I’m pretty sure that there is nothing to do with firewall, I have tried using both my Office & Home networks, the result are the same (400 Bad Request).

However, when I try to use my Mac Terminal to cURL the same query (which is the same network), it works with no issue (200 Ok)…

 ![Screenshot 2022-10-20 at 9.40.26 AM](https://us1.discourse-cdn.com/getpostman/original/3X/6/2/6244a49b208a91483e1349274c115d5629a13915.png)

And even when I’m using Web Agent, I set it to “Browser Agent”, which I assume it will be using my local IP on the device too, and it works as well.

 ![Screenshot 2022-10-20 at 9.43.41 AM](https://us1.discourse-cdn.com/getpostman/original/3X/3/b/3bbf22de3278bf0c148191cc25c4a3d1f82464a7.png)

I suspect the desktop agent has some sort of proxy setup behind? I install it from fresh, and I didn’t alter any proxy settings.

---

<div class="post-metadata">

**Author:** ![w4dd325](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/w4dd325/32/12436_2.png) [@w4dd325](https://community.postman.com/u/w4dd325)\
**Post date:** [October 20, 2022, 8:28am UTC](https://community.postman.com/t/desktop-agent-macos-throwing-400-bad-request-but-web-agent-seems-ok/40226/4 "2022-10-20T08:28:42Z")

</div>

Hi @sochun2424

Is it a corporate laptop?

I found on mine that web would work but the client would not.  
Turned out to be changes to the corporate proxy that blocked the client (but not web).  
I had to add a self-sign certificate to Postman, for my corporate proxy.

---

<div class="post-metadata">

**Author:** ![sochun2424](https://avatars.discourse-cdn.com/v4/letter/s/8edcca/32.png) [@sochun2424](https://community.postman.com/u/sochun2424)\
**Post date:** [October 20, 2022, 9:56am UTC](https://community.postman.com/t/desktop-agent-macos-throwing-400-bad-request-but-web-agent-seems-ok/40226/5 "2022-10-20T09:56:56Z")

</div>

hi @w4dd325,

I’m using my own laptop without any device management policy set on my computer.

But it seems fine when I fire the API using Mac Terminal (cURL), so I’m quite sure that it is not because of firewall or some sort.

---

<div class="post-metadata">

**Author:** ![michaelderekjones](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/michaelderekjones/32/14819_2.png) [@michaelderekjones](https://community.postman.com/u/michaelderekjones)\
**Post date:** [October 20, 2022, 11:19am UTC](https://community.postman.com/t/desktop-agent-macos-throwing-400-bad-request-but-web-agent-seems-ok/40226/6 "2022-10-20T11:19:03Z")

</div>

I don’t think it’s a local issue. Like a local firewall on the MAC.

It does look like a networking issue with the request being rejected by Cloudflare.

I don’t know how Cloudflare sits in the infrastructure of your API that you are trying to post to.

Cloudflare is used for various reasons including denial of service protection, where you usually have to complete a captcha before you can actually hit the website. Wondering if the desktop app is triggering some extra level of protection, where you might need to add some additional authorisation or headers to bypass.
