-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
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
🚀 Feature: Mark 40X Function Executions as Failed #5161
Comments
Sorry, I did not see that issue, although it appears to only apply to 5xx errors. Would a pull request to include 4xx errors be ok? |
@sanny-io response and stdout should be returned for 400 errors. What is your function returning and what do you see in Appwrite? |
The response is returned for 400 errors, but what I am trying to say that it does not make sense to report the function as completed in the console. Imagine you have users reporting that your app is not working as expected (they are receiving 400 errors), but everything in the dashboard is green. module.exports = (request, response) => {
response.json({
success: false,
message: 'Error'
}, 400)
} In this picture, |
@sanny-io, ah I see. I'll bring this up to the team. |
@sanny-io in our next version, we'll be marking 40X errors as failed....That said, doing so will make it more difficult to differentiate between whether a function execution failed due to an error or if it was a bad request. |
@sanny-io I think we're onboard with you here. Had more talks internally. We'll try to do something to better indicate them in the future :) Sit tight while we work on a solution with design and engineering. |
🔖 Feature description
Responding to a request currently marks the execution as completed. I suggest that there be a way to signal failure in the dashboard, while also providing a response to the user.
🎤 Pitch
This gives developers the ability to give users a specific reason regarding the error that occurred, while also not misleadingly labeling an execution as successful in the dashboard.
👀 Have you spent some time to check if this issue has been raised before?
🏢 Have you read the Code of Conduct?
The text was updated successfully, but these errors were encountered: