# Some traffic isn't shown in mitmproxy

**URL:** <https://discourse.mitmproxy.org/t/some-traffic-isnt-shown-in-mitmproxy/543>\
**Category:** help\
**Created:** [July 7, 2017, 5:18pm UTC](https://discourse.mitmproxy.org/t/some-traffic-isnt-shown-in-mitmproxy/543 "2017-07-07T17:18:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![maxine](https://avatars.discourse-cdn.com/v4/letter/m/df788c/32.png) [@maxine](https://discourse.mitmproxy.org/u/maxine)\
**Post date:** [July 7, 2017, 5:18pm UTC](https://discourse.mitmproxy.org/t/some-traffic-isnt-shown-in-mitmproxy/543/1 "2017-07-07T17:18:04Z")

</div>

Hi,  
I am trying to capture traffic of an app. I configured a hotspot and connected the device the app is running on to it. On my pc where I set up the hotspot I use mitmproxy to capture the traffic.  
To start mitmproxy I use: mitmproxy -T --host. In addition to that I redirect the traffic from port 80 and 443 to port 8080. While using this configuration I get some error saying that some malformed syntax was used in the request. There seems to be some problem with http2.  
So I started to use --no-http2. That helped so now I get a valid response. But I only see traffic when I update the Inbox manually. When I send messages or get messages mitmproxy shows no traffic but in the app you can see that the message has been sent/received.  
Does someone have an idea why that traffic is not shown?  
Greetings:)

---

<div class="post-metadata">

**Author:** ![ujjwal96](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mitmproxy.org/ujjwal96/32/111_2.png) [@ujjwal96](https://discourse.mitmproxy.org/u/ujjwal96)\
**Post date:** [July 17, 2017, 5:08pm UTC](https://discourse.mitmproxy.org/t/some-traffic-isnt-shown-in-mitmproxy/543/2 "2017-07-17T17:08:53Z")

</div>

Hi, the app probably uses certificate pinning.

> [@HTTPS Sniffing on Android (Certificate Pinning)](https://discourse.mitmproxy.org/t/https-sniffing-on-android-certificate-pinning/550/2):
>
> Hi, If an app uses certificate pinning you need to manually patch the app (decompile and add the certificate) or you need to root your android device. [http://docs.mitmproxy.org/en/stable/certinstall.html#certificate-pinning](http://docs.mitmproxy.org/en/stable/certinstall.html#certificate-pinning)

Hope this helps 🙂
