Azure / LogicAppsUX

https://learn.microsoft.com/azure/logic-apps
MIT License
67 stars 66 forks source link

http action does not accept plain text value to be sent. #4840

Open Band-Aid opened 2 weeks ago

Band-Aid commented 2 weeks ago

Describe the Bug with repro steps

Sending a PUT request with a string value return a 500 error with message: json error invalid character 'x' looking for beginning of value

STR:

  1. Create a HTTP action with PUT method;
  2. In the body place a string value

Successful cURL example:

curl  -X PUT \
  'https://app.pendo.io/api/v1/metadata/visitor/custom/value/visitorid/group' \
  --header 'Accept: */*' \
  --header 'x-pendo-integration-key: xxxxx' \
  --header 'Content-Type: application/json' \
  --data-raw '"Finance"'

I've tried replace the content-type to plaintext but that still return the invalid character json error.

What type of Logic App Is this happening in?

Consumption (Portal)

Are you using new designer or old designer

New Designer

Did you refer to the TSG before filing this issue? https://aka.ms/lauxtsg

Yes

Workflow JSON

{
  "type": "Http",
  "inputs": {
    "uri": "https://app.pendo.io/api/v1/metadata/visitor/custom/value/@{item()?['mail']}/group",
    "method": "PUT",
    "headers": {
      "x-pendo-integration-key": "xxxxxxx",
      "Content-Type": "application/json"
    },
    "body": "Finance"
  },
  "runtimeConfiguration": {
    "contentTransfer": {
      "transferMode": "Chunked"
    }
  }
}

Screenshots or Videos

No response

Browser

edge

Additional context

No response