Forum Discussion
[Bug] HTTP response code is 200 when it should be 413
AvineshwarTexas ,
We are not able to reproduce this. Can you please share the sample json with us.
- AvineshwarTexasApr 20, 2020Copper Contributor
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-MSFTApr 21, 2020Former Employee
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.- AvineshwarTexasApr 21, 2020Copper Contributor
So, I just want to reiterate that the problem isn't about the size of the payload. Actually that payload which I am trying to send is ridiculous and should be rejected by the upstream. The problem is in the way API responds to it.
Btw, it is the following type:
"@type": "MessageCard"