We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Doesn't the following line mean that the process will always end in an error?
functions-framework-nodejs/src/invoker.ts
Line 531 in 518f2d0
What is the non-error-producing recommended way to stop the server? Say after testing in a CI environment?
The text was updated successfully, but these errors were encountered:
That's a good question. I don't think there is a great way to stop the server now without an error.
Do you have a recommendation for what could fix this? Simply removing the error?
Sorry, something went wrong.
I think we'd need to change the hander to return 0 and not call logAndSendError.
0
logAndSendError
Hey sorry had forgotten about this. Something like this would be very useful:
npx @google-cloud/functions-framework --run-script "./test-my-api.sh"
This should spin up the API and then run test-my-api.sh (or whatever) and when the script is done, quit the API and marshal back the exit code for CI.
test-my-api.sh
@grant I thinks this is very good and simple and elegant solutions for this problem.
This should be fixed now on master with #187.
master
grant
Successfully merging a pull request may close this issue.
Doesn't the following line mean that the process will always end in an error?
functions-framework-nodejs/src/invoker.ts
Line 531 in 518f2d0
What is the non-error-producing recommended way to stop the server? Say after testing in a CI environment?
The text was updated successfully, but these errors were encountered: