Hi all,
I am facing an error about calling REST API with error - 413 Request Entity Too Large.
Here was what I did:
1. Upload photo to the server by REST API
2. Convert photo binaryData to base64
3. Set base64 as Text Input parameter in API Body
4. Then server response: "ErrorExecuting Test. The remote server returned an error: (413) Request Entity Too Large"
However, I can submit succeed by other API testing tools like "Postman", buy it will error on Outsystems......
Photo size : 876 kb
Pls help, Thanks >.<
Hi Jack
here the answer
https://www.outsystems.com/forums/discussion/43390/can-we-limit-size-of-incoming-request/
Thanks
Balasubramanian
Hi
Are you exposing or consuming a REST API?
Have you ever made it work using Outsystems? Have you tried with a smaller file?
It is important to make it work in outsystems first
Regards
Pedro Costa wrote:
Hi Pedro,
On outsystems it will work when using small photo. I am think the length of text was too large to Outsystems to handle...
Alternatively, you can compress your images.
https://www.outsystems.com/forge/component-overview/2965/compress-resize-image
To better understand the problem, I need to know if you are consuming or exposing the REST API.