Forum Discussion

jakubjanuszkiewicz's avatar
jakubjanuszkiewicz
Copper Contributor
Oct 08, 2019

Incoming webhook fails but returns HTTP 200 OK

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

  • Scott Abrants's avatar
    Scott Abrants
    Copper Contributor

    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.

    • jakubjanuszkiewicz's avatar
      jakubjanuszkiewicz
      Copper Contributor

      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?

      • jakubjanuszkiewicz's avatar
        jakubjanuszkiewicz
        Copper Contributor

        For anyone interested, I was told that it was most likely the same as this: https://answers.microsoft.com/en-us/msoffice/forum/all/microsoft-teams-incoming-webhook-stopped-working/d841e06a-b0a7-41fd-a4b9-644a54e0b30c

    • jakubjanuszkiewicz's avatar
      jakubjanuszkiewicz
      Copper Contributor

      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.

  • Kaufsim's avatar
    Kaufsim
    Copper Contributor

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

Resources