Description of a phantom connection issue WebApi

Hi, team.
We’re working with the Milestone XProtect 2023R2 Professional Plus system.
Our colleagues on the development team have set up an integration via WebAPI.
When requests to connect to the Mobile Server are sent from another system, a connection is established and requests to export video recordings are sent.
In some cases, we receive an error that looks like this: ERROR (fetch failed)

When connecting via software to Milestone Mobile Server

[MobileServerURL] + /XProtectMobile/Communication they are sent here, all to a single endpoint using the POST method

to this URL http://our-company-server:8081/XProtectMobile/Communication

Sometimes a connection error occurs—“fetch failed”

Here is the code for the connection program:

const res = await fetch( this.settings.MobileServerURL + this.settings.communicationChanel, {
method: ‘POST’,
headers: {
‘Content-Type’: ‘text/xml; charset=UTF-8’
},
body
});

fetch failed is a generic client-side error and usually means the connection was not completed successfully before an HTTP response was received. Based on the information provided, it is difficult to conclude that the issue originates in XProtect Mobile Server.

As a first step, does the XProtect Web Client exhibit the same behavior?

If the Web Client experiences the same intermittent connection failures, that would indicate a general environment issue (network, Mobile Server, proxy, firewall, load balancer, etc.).

If the Web Client works consistently while only the integration you developed fails, the focus should be on troubleshooting the integration itself.