When opening Desktop, it fails with Cannot read properties of undefined (reading 'plan')

When you get this error, if you check your log file, you might see an error like this.

{"level":50,"time":1724218318315,"msg":"HTTP request failed: {\"errno\":-3001,\"code\":\"EAI_AGAIN\",\"syscall\":\"getaddrinfo\",\"hostname\":\"[login.microsoftonline.com](http://login.microsoftonline.com/)\",\"NETWORK_ERROR\":true}","pid":17728,"hostname":"abc","v":1}

{"level":50,"time":1724218318315,"msg":"Network error at login: {\"errno\":-3001,\"code\":\"EAI_AGAIN\",\"syscall\":\"getaddrinfo\",\"hostname\":\"[login.microsoftonline.com](http://login.microsoftonline.com/)\",\"NETWORK_ERROR\":true}","pid":17728,"hostname":"abc","v":1}

{"level":50,"time":1724218319018,"msg":"HTTP request failed: {\"errno\":-3001,\"code\":\"EAI_AGAIN\",\"syscall\":\"getaddrinfo\",\"hostname\":\"[login.microsoftonline.com](http://login.microsoftonline.com/)\",\"NETWORK_ERROR\":true}","pid":17728,"hostname":"abc","v":1}

{"level":50,"time":1724218319018,"pid":17728,"hostname":"abc","errno":-3001,"code":"EAI_AGAIN","syscall":"getaddrinfo","hostname":"[login.microsoftonline.com](http://login.microsoftonline.com/)","NETWORK_ERROR":true,"v":1}

The error message you’re seeing is related to a network issue, specifically a DNS resolution problem. Here’s a breakdown of the key components:

  1. errno\":-3001: This is the error number, which in this context indicates a DNS-related error.
  2. code\":\"EAI_AGAIN: This error code (EAI_AGAIN) typically means a temporary failure in name resolution. It is returned by the getaddrinfo function when the DNS server cannot be reached or there is a temporary issue with DNS resolution.
  3. syscall\":\"getaddrinfo: This indicates that the error occurred during the getaddrinfo system call, which is responsible for resolving a hostname into an IP address.
  4. hostname\":\"login.microsoftonline.com: The hostname that the system was trying to resolve when the error occurred. In this case, it’s login.microsoftonline.com, which is a Microsoft login service.
  5. NETWORK_ERROR\":true: This indicates that the error is network-related.

Possible Causes:

  • DNS Server Issue: The DNS server you’re using might be temporarily down or unable to resolve the hostname.
  • Network Connectivity Issue: There might be an issue with your internet connection or network configuration.
  • Firewall or Proxy Interference: A firewall or proxy might be blocking the request to the DNS server.
  • Temporary Outage: The service might be experiencing a temporary outage.

Suggested Solutions:

  1. Retry the Request: Since EAI_AGAIN indicates a temporary issue, retrying the request after a short delay might resolve the issue.
  2. Check DNS Settings: Ensure that your DNS settings are correct and consider using a different DNS server, like Google’s DNS (8.8.8.8).
  3. Check Network Connection: Verify that your internet connection is stable and working properly.
  4. Check Firewall/Proxy Settings: Ensure that there is no firewall or proxy blocking access to login.microsoftonline.com.

If the issue persists, it might be worth investigating further with your network administrator.

1 Like