SAP Builders Discussions
Join the discussion -- ask questions and discuss how you and fellow SAP Builders are using SAP Build, SAP Build Apps, SAP Build Process Automation, and SAP Build Work Zone.
cancel
Showing results for 
Search instead for 
Did you mean: 

Error 413 in Build Apps when sending POST Request

michabaer
Galactic 2
Galactic 2

Hello all,

i have a problem in sending a POST Request with Build Apps. I want to send a file with BASE64 to a rest api. 

Every data file up to 50 kb is working fine, see:

michabaer_0-1691653174222.png

but if it comes > 50 kb, then the file is too large and i will see a Error 413, which indicates that the payload is to large. See picture with example of 400 kb file. 

michabaer_1-1691653255494.png

With postman i can easily send this file with 400 kb. So the problem might be on Build Apps site?
What can i do, to send large content (best up to 5 MB) with Build Apps?

Thanks for your help!
Best Regards
Micha

4 REPLIES 4

dan_wroblewski
Employee
Employee
0 Kudos

Can you provide he endpoint you are trying to access, as well as the headers -- both when running from Postman and when running from Build Apps?




--------------
See all my blogs and connect with me on Twitter / LinkedIn

0 Kudos

My request headers are both the same:

Content-Type: application/json

My endpoint I can't provide to the public, because i created a cap app to be the endpoint between build apps and Object Store (AWS S3 bucket).

agpekka
Employee
Employee

Hi,

Sorry, yes, this is a known issue and fix is coming up.
Default nodejs express json payload size is unfortunately 100kb and we had not changed that.
But as said, fix will be in the next release.
Note: in deployed app you should be able to post as huge payload as your backend allows. this restriction is about sap btp destinations in Build Apps editor and preview

0 Kudos

Hello,

thanks a lot for this information!!