Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Band-Aid opened this issue May 14, 2024 · 0 comments
Open

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

Band-Aid opened this issue May 14, 2024 · 0 comments

Comments

@Band-Aid
Copy link

Band-Aid commented May 14, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant