Silent sync failure behind corporate proxy, data loss scenario

If it’s useful, I captured the logs when the app is reporting Synced but failing due to not being able to navigate past the proxy.

It’s indicating a relevant 40x error via System.AggregateException: One or more errors occurred. ---> System.Net.WebException: The remote server returned an error: (407) Proxy Authentication Required., and bugsnag is also failing as a result of the loss of comms.

Would there be benefit in using a simplified connectivity check, like a captive-portal URL? Apple uses http://captive.apple.com/hotspot-detect.html to detect if a connection is proxied or blocked, as does Firefox (http://detectportal.firefox.com/success.txt). This can provide a “ground truth” access test without having to deal with a range of different error codes and simplify your network validation.

Extracted log below:

PS C:\Users\myUser\AppData\Local\inkdrop\app-5.2.1> .\Inkdrop.exe --enable-logging
PS C:\Users\myUser\AppData\Local\inkdrop\app-5.2.1>
[bugsnag] Loaded!
2021-01-28T10:42:25.721Z app:info Initializing inkdrop app..
2021-01-28T10:42:25.725Z app:info Arguments: C:\Users\myUser\AppData\Local\inkdrop\app-5.2.1\Inkdrop.exe
2021-01-28T10:42:25.726Z app:info Arguments: --enable-logging
2021-01-28T10:42:25.777Z app:info Starting inkdrop app..
2021-01-28T10:42:25.864Z app:info axios default config: { proxy: false, httpAgent: undefined, httpsAgent: undefined }
[25144:0128/204226.689:INFO:CONSOLE(51270)] "[bugsnag] Loaded!", source: <embedded> (51270)
<< LINES REMOVED >>
2021-01-28T10:42:39.705Z app:error error during auto update: Error: Command failed: 4294967295
System.AggregateException: One or more errors occurred. ---> System.Net.WebException: The remote server returned an error: (407) Proxy Authentication Required. ---> System.ComponentModel.Win32Exception: The system cannot contact a domain controller to service the authentication request. Please try again later
   at System.Net.NTAuthentication.GetOutgoingBlob(Byte[] incomingBlob, Boolean throwOnError, SecurityStatus& statusCode)
   at System.Net.NTAuthentication.GetOutgoingBlob(String incomingBlob)
   at System.Net.NegotiateClient.DoAuthenticate(String challenge, WebRequest webRequest, ICredentials credentials, Boolean preAuthenticate)
   at System.Net.NegotiateClient.Authenticate(String challenge, WebRequest webRequest, ICredentials credentials)
   at System.Net.AuthenticationManagerDefault.Authenticate(String challenge, WebRequest request, ICredentials credentials)
   at System.Net.AuthenticationState.AttemptAuthenticate(HttpWebRequest httpWebRequest, ICredentials authInfo)
   at System.Net.HttpWebRequest.CheckResubmitForAuth()
   at System.Net.HttpWebRequest.CheckResubmit(Exception& e, Boolean& disableUpload)
   --- End of inner exception stack trace ---
<< LINES REMOVED >>
---> (Inner Exception #0) System.Net.WebException: The remote server returned an error: (407) Proxy Authentication Required. ---> System.ComponentModel.Win32Exception: The system cannot contact a domain controller to service the authentication request. Please try again later
<< LINES REMOVED >>
[bugsnag] Report failed to send…
Error: unable to get local issuer certificate

 [Error: unable to get local issuer certificate

] {
  code: 'UNABLE_TO_GET_ISSUER_CERT_LOCALLY'
}
1 Like