Skip to content
This repository was archived by the owner on Sep 8, 2021. It is now read-only.

async handlers are broken #9

Open
sgrund14 opened this issue Apr 14, 2019 · 2 comments
Open

async handlers are broken #9

sgrund14 opened this issue Apr 14, 2019 · 2 comments

Comments

@sgrund14
Copy link

sgrund14 commented Apr 14, 2019

just added the vue-cli-plugin to my vue/netlify project

looks like the server gets up and running just fine after running vue-cli-service serve

Lambda server is listening on 9000
...
App running at:
  - Local:   http://localhost:8080/ 

but when I hit http://localhost:8080/.netlify/functions/hello, it's not returning anything.

finding the issue to be returning anything from an async handler, like this example

export async function handler(event, context) {
    // your server-side functionality
    return {
      statusCode: 200,
      body: JSON.stringify({
        message: `Hello world`
      })
    }
};

seems like this should be supported, given that it's part of the netlify lambda spec

in the meantime, the callback API is working for so I'll use that but just wanted to put it out there!

thanks :)

@sgrund14 sgrund14 changed the title request is hanging :( async handlers are broken Apr 14, 2019
@manico
Copy link

manico commented Aug 21, 2019

This is yet not fixed?

@bswank
Copy link

bswank commented Sep 9, 2019

Having the same trouble. CB method works fine locally. When deployed to Netlify, the Async method works as intended, but locally I'm having trouble.

Using callbacks in the meantime, but this is not a great long term solution. Please fix!

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

No branches or pull requests

3 participants