HTTP-BadRequest

BENISTI, DANIEL 1 Reputation point
2022-09-22T11:23:05.853+00:00

I'm facing an error whenever I'm trying to create a POST request to one of our Microservices.
The Error log:

{
"error": {
"code": "BadRequest",
"message": "Http request failed as there is an error: 'The requested name is valid, but no data of the requested type was found.'."
}
}

Couldn't find any related explanation for why it's happening.
Please advice

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

1 answer

Sort by: Most helpful
  1. MayankBargali-MSFT 69,416 Reputation points
    2022-09-27T02:30:53.663+00:00

    @BENISTI, DANIEL Thanks for reaching out.

    400 Bad Request means that the request could not be understood by the server due to malformed syntax. The client SHOULD NOT repeat the request without modifications.
    In your case please validate whether you are passing the request body, header and query parameters (if any) correctly while calling your API with the Native HTTP connector for logic app.

    To troubleshoot it further I will suggest you to use any REST client, fiddler/postman to create the request and validate it with your configuration that you are passing in the HTTP connector.
    In case if you are still facing the issue then please let me know so I can validate your fiddler/postman and configuration in your HTTP connector to assist you further.