Skip to content
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
@sgrund14

Description

@sgrund14

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 :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions