Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FDK doesn't handle undefined response #32

Open
arditdine opened this issue Apr 20, 2020 · 0 comments
Open

FDK doesn't handle undefined response #32

arditdine opened this issue Apr 20, 2020 · 0 comments

Comments

@arditdine
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant