Restlet post data limit
# ask-stanley-ai
t
Restlet post data limit
c
AI generated answer (using internal Slack threads):
The limit for data sent to a Restlet via http.post in the request body is 10 MB. This is a NetSuite limitation. If you are dealing with binary files, you should base64 encode them first. Then, in the Restlet, you can use the N/file module to save the file. For the JSON response that a Restlet can send back, it is suggested that the limit is around 5MB. However, there are instances where a Restlet was able to return up to 48 MB of data, but not more than 50 MB. If you are hitting these limits, one approach to handle this is through pagination. This means breaking down the data into smaller, manageable chunks or 'pages'. Each 'page' of data would be under the limit, and the receiving system would make multiple requests to get each 'page' until it has all the data. ****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ******
Slack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.851420403
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.833541334
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.816696823
Please provide your feedback on this answer.