Simon Harris
Simon Harris

Reputation: 61

OpenWhisk error "The action produced a response that exceeded the allowed length"

I have an OpenWhisk action (on IBM Bluemix) which returns a large json document. I'm receiving an error indicating that the returned document is greater than 1048576 bytes (1MB). Is there a way to increase this limit ?

Thanks in advance -- Simon

Upvotes: 0

Views: 418

Answers (3)

Michael Behrendt
Michael Behrendt

Reputation: 26

the recommendation for large payloads (>1MB) is to store them on sth like cloudant and then have cloudant fire a trigger to invoke an action. See here for details: https://console.bluemix.net/docs/openwhisk/openwhisk_cloudant.html#openwhisk_catalog_cloudant

Upvotes: 0

Rob Allen
Rob Allen

Reputation: 12778

I would guess that you could store the object to S3 or similar and the return a link to it.

Upvotes: 1

ada2161
ada2161

Reputation: 147

This page indicates the default limits and it seems it can can't be changed https://console.bluemix.net/docs/openwhisk/openwhisk_reference.html#openwhisk_reference

Upvotes: 0

Related Questions