cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
mschafer85
Frequent Visitor

Action "Post a feed notification" returns "The response is not in a JSON format."

Hi community!

 

It all started out with me wanting to use the template "Follow up on a message": https://powerautomate.microsoft.com/en-us/templates/details/34df10b7d2824b12a23f3a0c50869f99/follow-...

 

For some users, this flow failed. The failing action was "Post a feed notification" and the error message "The response is not in a JSON format":

mschafer85_0-1646633278331.png


However, this was only the case for some users. I suspected that it might have to do with the language settings (as you can see in the screenshot above, the issue comes up for a French user - but for German users it worked fine).

 

So I tried to reproduce it on a demo tenant: For the admin user, it worked fine, but for two English test users, it failed with the same error message.

 

Then, I tried to set up a minimal example with one of these test users:

 

mschafer85_1-1646633393946.png

 

However, this also failed:

 

mschafer85_2-1646633415063.png

 

The contents:

 

{
  "error": {
    "code": 400,
    "source": "europe-002.azure-apim.net",
    "clientRequestId": "1d59f9ce-bdd2-4b1a-948a-02cc0726bd61",
    "message": "The response is not in a JSON format.",
    "innerError": "Cannot read server response."
  }
}

{
  "Pragma": "no-cache",
  "x-ms-request-id": "westeurope:7458d265-b522-4157-a921-b8865382ff54",
  "x-ms-correlation-request-id": "7458d265-b522-4157-a921-b8865382ff54",
  "x-ms-flow-mobile-ios-version": "1.3.0",
  "x-ms-flow-routing-request-id": "WESTEUROPE:20220307T060248Z:7458d265-b522-4157-a921-b8865382ff54",
  "Strict-Transport-Security": "max-age=31536000; includeSubDomains",
  "X-Content-Type-Options": "nosniff",
  "Timing-Allow-Origin": "*",
  "x-ms-apihub-cached-response": "false",
  "x-ms-apihub-obo": "true",
  "Cache-Control": "no-cache",
  "Date": "Mon, 07 Mar 2022 06:02:47 GMT",
  "Content-Length": "256",
  "Content-Type": "application/json",
  "Expires": "-1"
}

 

So, to me, this seems like an issue with the action "Post a feed notification".

 

Does anyone have any ideas?

3 REPLIES 3
jinivthakkar
Super User
Super User

@mschafer85 the json is broken, please check if JSON is valid on http://jsonviewer.stack.hu/

 

found a similar thread here

 

https://powerusers.microsoft.com/t5/General-Power-Automate/Error-The-response-is-not-in-a-JSON-forma...

 

--------------------------------------------------------------------------------

If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

Hello @jinivthakkar,

 

thanks for your response!

 

But the JSON seems correct - the very same message works for a different user.

 

Meanwhile it seems like we might have figuered it out, though: The action "Post a feed notification" seems to work for users which have the "Power Automate" app installed in Teams.

As soon as I add this app ...

mschafer85_0-1646644632167.png

 

... the JSON error disappears and the notification goes through.

 

Can anyone confirm this behaviour? I haven't found this limitation yet: https://docs.microsoft.com/en-us/connectors/teams/#known-issues-and-limitations

landonjochim
Resolver II
Resolver II

If you are having trouble with the "The response is not in a JSON format" error. Read this:
https://powerusers.microsoft.com/t5/Building-Flows/Solution-How-to-use-the-MS-Teams-Post-a-Feed-Noti...

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Users online (3,279)