Azure Logic App Simple Website Hit with HTTP

Taylor Reiner 1 Reputation point
2021-05-03T23:17:17.737+00:00

Hello, I'm simplying trying to hit a open api like this:
93239-image.png

The api: https://api.geekdo.com/xmlapi/boardgame/3

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.
1,826 questions
{count} votes

1 answer

Sort by: Most helpful
  1. MayankBargali-MSFT 49,721 Reputation points Microsoft Employee
    2021-05-10T04:53:26.43+00:00

    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).