How to avoid 'Bad Request - Invalid Hostname' on Azure Function?

David King 46 Reputation points
2020-08-14T16:52:59.967+00:00

I have a logic app which sends encrypted data to an azure function for decryption. Everything's been working great until a few days ago where I saw this error. I'm not quite sure what it means or even what caused it. If anyone has insight into this, your help would be greatly appreciated.

Here's the surface level error:

17717-image.png

Here's a picture of the connector from the workflow run:

17754-image.png

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,073 questions
Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,187 questions
{count} votes

Accepted answer
  1. MayankBargali-MSFT 70,516 Reputation points
    2020-08-17T11:26:42.357+00:00

    Hi @David King

    The issue seems to be due to cold start. I can see that this request got failed (08/13 1:57:31 UTC) with 400 error from backend and the next request that was made was succeeded. The suggestion would be to retry the operation again in the logic app.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.