Internal Error in logic app

Suman Kumar MALISETTY 21 Reputation points
2021-01-27T06:27:23.417+00:00

@Suman Kumar MALISETTY

I am facing Internal Error for the logic app but even after failing table is getting updated and if I run the logic app repeatedly then the job gets succeeded

60836-secondrun.png60845-internalerror.png

In the above screenshots, the Inbound job got failed due to an internal error and after reran job got succeeded which is observed in the second screenshot.

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

Accepted answer
  1. MayankBargali-MSFT 70,936 Reputation points Moderator
    2021-01-27T11:22:13.687+00:00

    Hi @Suman Kumar MALISETTY

    Welcome to Microsoft Q&A! Thanks for posting the question.

    Looking into the screenshot I can see that the function app is called from the logic app workflow and the Internal Server error is returned from your function app.
    I have looked into the backend logs for the function app and I can see socket exception in your function app.

    Full Exception :
    Exception while executing function: yourfunctionappname
    Npgsql.NpgsqlException : Exception while reading from stream
    System.IO.IOException : Unable to read data from the transport connection: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond..
    System.Net.Sockets.SocketException : A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
    at System.Net.Sockets.NetworkStream.Read(Byte[] buffer,Int32 offset,Int32 size)

    It looks like a port exhaustion issue at your function app and I will suggest reviewing your function app code to reuse the connection to external services rather than creating a new connection for every request . I will also suggest you to review the function best practices and how to manage connection in function app to fix the issue.

    0 comments No comments

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.