web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Error: The response is...
Power Automate
Answered

Error: The response is not in a JSON format.

(0) ShareShare
ReportReport
Posted on by 10

I am trying to post a feed to teams when new tweets arrived
but it shows "The response is not in a JSON format."
Is there something wrong with the configuration?

1.png

Categories:
I have the same question (0)
  • jinivthakkar Profile Picture
    4,187 on at

    @Rocosteve as error suggests the JSON is broken, please try pasting your JSON here http://jsonviewer.stack.hu/

    If the JSON is valid it would show you the tree structure of JSON else you need to fix your input.

     

    Alternatively, you can post your value here and may be some can help.

     

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

    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.

  • Rocosteve Profile Picture
    10 on at

    Thanks for your help! The JSON is valid

    2.png

     

    My input value:

    {
     "method": "post",
     "path": "/flowbot/feednotification/poster/Power%20Virtual%20Agents/notificationType/team",
     "host": {
     "api": {
     "runtimeUrl": "https://asia-001.azure-apim.net/apim/teams"
     },
     "connection": {
     "name": "/providers/Microsoft.PowerApps/apis/shared_teams/connections/shared-teams-[REDACTED]"
     }
     },
     "authentication": {
     "scheme": "Key",
     "parameter": "*sanitized*",
     "type": "Raw"
     },
     "body": {
     "recipient": "[REDACTED]@staff.roco.work",
     "previewText": "[REDACTED]",
     "channelRecipient": {
     "groupId": "[REDACTED]",
     "channelId": "[REDACTED]"
     }
     }
    }

     

  • jinivthakkar Profile Picture
    4,187 on at

    @Rocosteve so issue resolved, if not then what value are you trying to pass to the action ?

  • Rocosteve Profile Picture
    10 on at

    JSON is valid, but it says "The response is not in a JSON format."

    Should I post the output here?

  • jinivthakkar Profile Picture
    4,187 on at

    @Rocosteve I have your json in compose 2 and it works, you need to assign recipient, previewText from previous step(twitter action) it should work then, not sure where you are trying to assign the entire json but that will never work

    jinivthakkar_0-1642490226848.png

    This is how I did it

    outputs('Compose_2')['body']?['recipient']
    outputs('Compose_2')['body']?['previewText']

     

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

    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.

     

  • Verified answer
    jinivthakkar Profile Picture
    4,187 on at

    @Rocosteve check this documentation also  https://mymetaverseday.com/2021/12/08/notification/

     

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

    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.

     

  • Rocosteve Profile Picture
    10 on at

    Thanks! Now it works!

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hello Rocosteve

    I have the same error "The response in not in a JSON format." I used a flow template "When a new response is submitted -> send an email notification. According to Power Automate, the error is in the trigger. I clicked on the right blue box that states 0s and I see the following: BadGateway. The output has the following error message:

    What should I do? I appreciate your help. 

    {"statusCode":502,"headers":{"X-Cache":"CONFIG_NOCACHE","X-MSEdge-Ref":"Ref A: 8136518B592642F89CD58AE0FBC2D41E Ref B: CO1EDGE1608 Ref C: 2022-01-31T18:16:20Z","Timing-Allow-Origin":"*","x-ms-apihub-cached-response":"true","retry-after":"3600","Date":"Mon, 31 Jan 2022 18:16:19 GMT","Content-Length":"279","Content-Type":"application/json"},"body":{"error":{"code":502,"source":"flow-apim-msmanaged-na-westus2-01.azure-apim.net","clientRequestId":"b6b4c9b3-c86d-4de6-b731-da264e690ea0","message":"The response is not in a JSON format.","innerError":"Cannot read server response."}}}

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hello. This is mvbawa again. The code that I see is: 

    {

        "inputs": {

            "host": {

                "connectionName": "shared_microsoftforms",

                "operationId": "CreateFormWebhook",

                "apiId": "/providers/Microsoft.PowerApps/apis/shared_microsoftforms"

            },

            "parameters": {

                "form_id": "Fill| Test_Form_to_Send_E-mail_Notification_When_Filled_out"

            },

            "authentication": "@parameters('$authentication')"

        },

        "metadata": {

            "operationMetadataId": "18fefa6f-ce1b-402e-ae2c-3cb7c2afdbfe"

        },

        "splitOn": "@triggerOutputs()?['body/value']"

    }

    Please let me know what I should change in this code. Thank you.

    Best regards

    Maribel 

  • Joeygreco Profile Picture
    6 on at

    Hi @jinivthakkar i'm receiving a similar error and using your advice to check if the JSON is valid i'm getting the following error:

    {"statusCode":502,"headers":{"X-Cache":"CONFIG_NOCACHE","X-MSEdge-Ref":"Ref A: DD3313C20DBA4FB4B5C987A1C0FA93A2 Ref B: EWR311000107049 Ref C: 2023-03-08T21:44:59Z","Timing-Allow-Origin":"*","x-ms-apihub-cached-response":"false","x-ms-apihub-obo":"false","retry-after":"3600","Date":"Wed, 08 Mar 2023 21:44:59 GMT","Content-Length":"256","Content-Type":"application/json"},"body":{"error":{"code":502,"source":"canada-001.azure-apim.net","clientRequestId":"611a447c-4c6d-40d3-ab37-b6daf231ace1","message":"The response is not in a JSON format.","innerError":"Cannot read server response."}}}

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 557

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 264 Super User 2026 Season 1

Last 30 days Overall leaderboard