I am calling the Business Central web services of the custom API page from logic app. I am creating the Sales Header in the Business Central using this web service.
The web service is throwing an error ''Http request failed as there is an error: Received an invalid status line: 0.'. This error is not coming each time. We have the traffic like 2000-3000 web service calls per day and it failed 3-4 times. Also, when I re-run the web service it got succussed with the same web service payload and endpoint.
Business Central throws the error but that operation was also completed in the Business Central as Purchase Header will be created in BC and error is also received on web service response.
I checked it on logic app side, there is no issue on that side. So, Business Central is causing this issue.