Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

I was trying to build a function which can return array of dictionaries instead of only one dictionary as per the below tutorial https://github.com/digitalocean/sample-functions-python-jokes I can return
import pyjokes
def main(args):
joke = pyjokes.get_joke()
return {
'body': {
'response_type': 'in_channel',
'text': joke
}
}
I get this error
{
"result": {
"error": "The function did not return a dictionary."
},
"size": 54,
"status": "action developer error",
"success": false
}
I need something like
return [{
'body': {
'response_type': 'test1',
'text': 'joke'
}
},
{
'body': {
'response_type': 'test2',
'text': 'no-joke'
}
}]
is this possible with serverless functions?
Rory McEwan
Anjanesh Lekshminarayanan
182d09356ab94d3893ddfaca4f0270
Prashant Kumbhat
kprichard
e452769e8f30404d81a3bc803143f4
robert
Eleanor
GamesmenJordan