This repository was archived by the owner on Sep 8, 2021. It is now read-only.
This repository was archived by the owner on Sep 8, 2021. It is now read-only.
async handlers are broken #9
Open
Description
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 :)
Activity
[-]request is hanging :([/-][+]async handlers are broken[/+]manico commentedon Aug 21, 2019
This is yet not fixed?
bswank commentedon 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!