Incoming webhook fails but returns HTTP 200 OK

%3CLINGO-SUB%20id%3D%22lingo-sub-898677%22%20slang%3D%22en-US%22%3EIncoming%20webhook%20fails%20but%20returns%20HTTP%20200%20OK%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-898677%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20an%20incoming%20webhook%20which%20fails%20to%20accept%20POST%20requests%2C%20but%20returns%20HTTP%20200%20OK.%3C%2FP%3E%3CP%3EThe%20response%20body%20is%3A%20%22System.Reflection.ReflectionTypeLoadException%3A%20Unable%20to%20load%20one%20or%20more%20of%20the%20requested%20types.%20Retrieve%20the%20LoaderExceptions%20property%20for%20more%20information.%22%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThis%20should%20be%20returned%20as%20HTTP%205xx%20instead%2C%20as%20currently%20it%20breaks%20any%20automation%20which%20relies%20on%20it.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-898677%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EWebhooks%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-899986%22%20slang%3D%22en-US%22%3ERe%3A%20Incoming%20webhook%20fails%20but%20returns%20HTTP%20200%20OK%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-899986%22%20slang%3D%22en-US%22%3E%3CP%3EWe%E2%80%98re%20having%20the%20same%20issue%20here..%20read%20that%20on%20a%20lot%20of%20different%20forums%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-900581%22%20slang%3D%22en-US%22%3ERe%3A%20Incoming%20webhook%20fails%20but%20returns%20HTTP%20200%20OK%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-900581%22%20slang%3D%22en-US%22%3E%3CP%3EWe're%20having%20the%20same%20issue%20here%20as%20well.%20All%20our%20webhooks%20stopped%20working%20around%20Sunday%20at%205%3A00AM%20it%20looks%20like.%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F301802%22%20target%3D%22_blank%22%3E%40jakubjanuszkiewicz%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-901374%22%20slang%3D%22en-US%22%3ERe%3A%20Incoming%20webhook%20fails%20but%20returns%20HTTP%20200%20OK%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-901374%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F422422%22%20target%3D%22_blank%22%3E%40mharrison0224%3C%2FA%3E%26nbsp%3B%20that%20it%20stopped%20working%20is%20one%20problem.%20That%20is%20returns%20the%20error%20as%20200%20OK%20is%20another%20problem%2C%20arguably%20a%20more%20serious%20one%2C%20as%20it%20conceals%20the%20error%20from%20scripts.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-906547%22%20slang%3D%22en-US%22%3ERe%3A%20Incoming%20webhook%20fails%20but%20returns%20HTTP%20200%20OK%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-906547%22%20slang%3D%22en-US%22%3E%3CP%3ELooks%20like%20this%20is%20still%20happening%20intermittently.%26nbsp%3B%20I%20am%20also%20not%20finding%20a%20sure%20fire%20way%20to%20grab%20the%20body%20to%20also%20inspect%20the%20result%20outside%20of%20the%20200%20-%20Ok.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-933674%22%20slang%3D%22en-US%22%3ERe%3A%20Incoming%20webhook%20fails%20but%20returns%20HTTP%20200%20OK%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-933674%22%20slang%3D%22en-US%22%3E%3CP%3EIs%20anyone%20from%20Microsoft%20reading%20this%3F%20Will%20the%20%22200%20OK%22%20problem%20be%20fixed%2C%20so%20that%20a%20proper%205xx%20code%20is%20returned%20in%20case%20of%20an%20error%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1155916%22%20slang%3D%22en-US%22%3ERe%3A%20Incoming%20webhook%20fails%20but%20returns%20HTTP%20200%20OK%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1155916%22%20slang%3D%22en-US%22%3E%3CP%3EFor%20anyone%20interested%2C%20I%20was%20told%20that%20it%20was%20most%20likely%20the%20same%20as%20this%3A%20%3CA%20href%3D%22https%3A%2F%2Fanswers.microsoft.com%2Fen-us%2Fmsoffice%2Fforum%2Fall%2Fmicrosoft-teams-incoming-webhook-stopped-working%2Fd841e06a-b0a7-41fd-a4b9-644a54e0b30c%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fanswers.microsoft.com%2Fen-us%2Fmsoffice%2Fforum%2Fall%2Fmicrosoft-teams-incoming-webhook-stopped-working%2Fd841e06a-b0a7-41fd-a4b9-644a54e0b30c%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
New Contributor

I have an incoming webhook which fails to accept POST requests, but returns HTTP 200 OK.

The response body is: "System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information."

 

This should be returned as HTTP 5xx instead, as currently it breaks any automation which relies on it.

6 Replies
Highlighted

We‘re having the same issue here.. read that on a lot of different forums

Highlighted

We're having the same issue here as well. All our webhooks stopped working around Sunday at 5:00AM it looks like. @jakubjanuszkiewicz 

Highlighted

@mharrison0224  that it stopped working is one problem. That is returns the error as 200 OK is another problem, arguably a more serious one, as it conceals the error from scripts.

Highlighted

Looks like this is still happening intermittently.  I am also not finding a sure fire way to grab the body to also inspect the result outside of the 200 - Ok.

Highlighted

Is anyone from Microsoft reading this? Will the "200 OK" problem be fixed, so that a proper 5xx code is returned in case of an error?

Highlighted