Azure Logic App Simple Website Hit with HTTP

Taylor Reiner 1 Reputation point

Hello, I'm simplying trying to hit a open api like this:

The api:

When I run this I get: BadRequest. Http request failed: 'The character set provided in ContentType is invalid. Cannot read content as string using an invalid character set.'.

Is there something I should be setting?

Thanks a ton for any help :)

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
2,887 questions
{count} votes

1 answer

Sort by: Most helpful
  1. MayankBargali-MSFT 69,411 Reputation points

    Hi @Taylor Reiner

    Apology for the delay.
    I have got the confirmation as the HTTP endpoint didn't accept the "Accept" header this is the expected behavior. As the logic app is built on top of the Azure function .NET version and internally it using HttpContent to create the HTTP request and we do see an issue with dot net HttpContent.

    If you don't have access to the HTTP endpoint and cannot change the HTTP endpoint to accept the "Accept" header then alternatively you can use the logic app (preview) which is built on top of dot net core and I tested your HTTP endpoint and I don't see any issue while using HTTP action for the logic app (preview).

    1 person found this answer helpful.