1300
Views
4
Comments
REST error - 413 Request Entity Too Large
Question

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 >.<

2017-03-03 12-48-17
Balasubramanian Prakasam
2022-07-12 16-41-57
Pedro Costa

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

UserImage.jpg
Jack.Wong

Pedro Costa wrote:

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

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...


2022-07-12 16-41-57
Pedro Costa

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.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.