hi,
i use vue-cli-plugins-netlify-lambda to run netlify functions locally.
i got below error message when running async functions, the same code is working in Production.
Proxy error: Could not proxy request /hello_async from localhost:8080 to http://localhost:9000 .
See Errors | Node.js v19.5.0 Documentation for more information (ECONNRESET).
how to fix this ?
apparently somebody has reported this too:
opened 10:51PM - 14 Apr 19 UTC
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 :)
thanks in advance.
Hi,
My recommendation is that you add your voice to the existing issue with your own reproduction steps so that our devs, and others will see it there. It’s better to track issues directly in the repo for the project where it’ll be seen by interested parties. In the meantime, I know work is being done to better support vue cli but I don’t know of any fixes for the issue you mentioned.