Forum Discussion

AvineshwarTexas's avatar
AvineshwarTexas
Copper Contributor
Apr 19, 2020

[Bug] HTTP response code is 200 when it should be 413

When I send a big enough JSON payload to an incoming Teams webhook, it returns a 200 with the response body stating that it is a 413. This is a strange design decision.

5 Replies

    • AvineshwarTexas's avatar
      AvineshwarTexas
      Copper Contributor

      subhasish-MSFT 

      Hi,

      It is a bit sensitive so I won't be able to share the payload. Also, there isn't anything special about the schema as well as the populated version of it does contain private information. That said, the entire JSON payload i.e. the populated schema (which I would POST to the incoming webhook) is ~250 bytes (calculated using sys.getsizeof() in python3.7) which I was able to capture in a debugger session using PyCharm (uses pydev)

       

       

       

      Does that help?.

      • subhasish-MSFT's avatar
        subhasish-MSFT
        Iron Contributor

        AvineshwarTexas ,

         

        So you are getting this error messages for 250 byte size of payload. That is strange.

        I am not able to reproduced this with large size of JSON data. I am discussing this with internal team and will get back to you.  

Resources