Capacitor network problems Ionic 6 Angular 15

Trying to use capacitor network give me a problem. First a check the connection status doing “Network.getStatus()”, then if the status is ‘connected = true’, I do a fetch type POST sending some data to a server, up to here all is OK. If the status is ‘connected = false’, it is listening to networkStatusChanged event, so when it is firing (means the connection is again alive), it do the same fetch to the server…this is not working, it fail with error ‘:ERR_NAME_NOT_RESOLVED’…why???. The URL is exactly the same is both cases.