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

Event Grid trigger always returns HTTP 202 #673

Closed
glaserbeamer opened this issue Apr 20, 2018 · 1 comment
Closed

Event Grid trigger always returns HTTP 202 #673

glaserbeamer opened this issue Apr 20, 2018 · 1 comment

Comments

@glaserbeamer
Copy link

Summary:
When an Event Grid trigger function throws an exception, I would expect an HTTP 500 to be returned to Event Grid; instead, this returns an HTTP 202, so Event Grid believes that processing was successful, and it never replays the event.

Repro steps:

  1. Add new "Event Grid trigger" function (C#).
  2. Change body of function to "throw new Exception();"
  3. Save and run.

Sample log output (using default/sample event):
2018-04-20T02:21:43.875 [Info] Function started (Id=)
2018-04-20T02:21:44.125 [Error] Exception while executing function: Functions.EventGridTriggerCSharp1. mscorlib: Exception has been thrown by the target of an invocation. f-EventGridTriggerCSharp1__1818170464: Exception of type 'System.Exception' was thrown.
2018-04-20T02:21:44.187 [Error] Function completed (Failure, Id=, Duration=313ms)

HTTP return code:
202 Accepted

@paulbatum
Copy link
Member

This issue was moved to Azure/azure-functions-eventgrid-extension#35

@ghost ghost locked as resolved and limited conversation to collaborators Jan 8, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants