fdk-node icon indicating copy to clipboard operation
fdk-node copied to clipboard

FDK doesn't handle undefined response

Open arditdine opened this issue 4 years ago • 0 comments

If I return undefined on the fdk it hangs until the function timeout. I have a function that if there's an error, it just console.error('error message') and then return. When I try to invoke fn function it hangs until it timeout.

fdk.handle(async event => {
    const result = await someAwaitFunction()
    if(result.error) {
       console.error(result.error)
       return
    }

   ....
})

fdk: 0.0.15 fn: 0.5.96

arditdine avatar Apr 20 '20 08:04 arditdine