Search Unity

Exception occurred attempting to connect to Unity Performance Reporting service

Discussion in 'Unity Cloud Diagnostics' started by hba_infinity, Jul 1, 2020.

  1. hba_infinity

    hba_infinity

    Joined:
    May 30, 2016
    Posts:
    49
    Just recently, our builds have started throwing exceptions in the editor log which I am trying to track down. It seems like there is some issue with attempting to connect to the Unity Cloud Services to upload symbols. We have been seeing the following problems at the moment, all starting with Exception occurred attempting to connect to Unity Performance Reporting service. Native symbols will not be uploaded for this build. Exception details:
    1. System.UriFormatException: Invalid URI: The URI is empty.
      at System.Uri.CreateThis (System.String uri, System.Boolean dontEscape, System.UriKind uriKind) [0x0007b] in <3845a180c26b4889bc2d47593a665814>:0
      at System.Uri..ctor (System.String uriString) [0x00014] in <3845a180c26b4889bc2d47593a665814>:0
      at System.Net.WebRequest.Create (System.String requestUriString) [0x0000e] in <3845a180c26b4889bc2d47593a665814>:0
      at UnityEditor.CrashReporting.CrashReporting.GetUsymUploadAuthToken () [0x00081] in C:\buildslave\unity\build\Modules\CloudServicesSettingsEditor\CrashReporting\Managed\CrashReporting.cs:80
      at System.Uri.CreateThis (System.String uri, System.Boolean dontEscape, System.UriKind uriKind) [0x0007b] in <3845a180c26b4889bc2d47593a665814>:0
      at System.Uri..ctor (System.String uriString) [0x00014] in <3845a180c26b4889bc2d47593a665814>:0
      at System.Net.WebRequest.Create (System.String requestUriString) [0x0000e] in <3845a180c26b4889bc2d47593a665814>:0
      at UnityEditor.CrashReporting.CrashReporting.GetUsymUploadAuthToken () [0x00081] in C:\buildslave\unity\build\Modules\CloudServicesSettingsEditor\CrashReporting\Managed\CrashReporting.cs:80​
    2. System.Net.WebException: The remote server returned an error: (404) Not Found.
      at System.Net.HttpWebRequest.EndGetResponse (System.IAsyncResult asyncResult) [0x00058] in <3845a180c26b4889bc2d47593a665814>:0
      at System.Net.HttpWebRequest.GetResponse () [0x0000e] in <3845a180c26b4889bc2d47593a665814>:0
      at UnityEditor.iOS.PostProcessiPhonePlayer.GetUsymUploadAuthToken (UnityEditor.iOS.PostProcessiPhonePlayer+BuildSettings bs) [0x000b4] in C:\buildslave\unity\build\PlatformDependent\iPhonePlayer\Extensions\Common\BuildPostProcessor.cs:2814
      at System.Net.HttpWebRequest.EndGetResponse (System.IAsyncResult asyncResult) [0x00058] in <3845a180c26b4889bc2d47593a665814>:0
      at System.Net.HttpWebRequest.GetResponse () [0x0000e] in <3845a180c26b4889bc2d47593a665814>:0
      at UnityEditor.iOS.PostProcessiPhonePlayer.GetUsymUploadAuthToken (UnityEditor.iOS.PostProcessiPhonePlayer+BuildSettings bs) [0x000b4] in C:\buildslave\unity\build\PlatformDependent\iPhonePlayer\Extensions\Common\BuildPostProcessor.cs:2814​
    Any thoughts on how to fix this issue or even disable the upload symbols step?

    Thanks
     
  2. Ryan-Unity

    Ryan-Unity

    Joined:
    Mar 23, 2016
    Posts:
    1,993
    Hi @hba_infinity, are you still experiencing these errors with connecting to the Cloud Diagnostics service? There was a brief service outage that occurred yesterday that could explain why you'd see these errors.
     
  3. hba_infinity

    hba_infinity

    Joined:
    May 30, 2016
    Posts:
    49
    We were still receiving them at ~1:30pm July 2nd GMT (only ~10 hours before this post). Was it fixed at this point in time?
     
  4. hba_infinity

    hba_infinity

    Joined:
    May 30, 2016
    Posts:
    49
    I have just created and checked some builds now, and the same error is still showing up with the same errors.

    The weird thing is that according to the UnityConnectSettings.asset, we don't even have the PerformanceReportingSettings even enabled.

    UnityConnectSettings:
    PerformanceReportingSettings:
    m_Enabled: 0​
     
  5. Ryan-Unity

    Ryan-Unity

    Joined:
    Mar 23, 2016
    Posts:
    1,993
    You definitely should not still be experiencing issues like this. Please open a Support ticket with us so that we can look into it further. You can do that by doing the following:
    1. Navigate to project on the Developer Dashboard.
    2. Select Cloud Diagnostics > Support from the left hand menu.
    3. Click on Open a Ticket and fill out the support form.
     
  6. any_user

    any_user

    Joined:
    Oct 19, 2008
    Posts:
    374
    @ryanc-unity are there currently any issues with the service? We had problems on Monday, then it worked yesterday, today it's broken again.
     
  7. Ryan-Unity

    Ryan-Unity

    Joined:
    Mar 23, 2016
    Posts:
    1,993
    Hi @any_user, there are not currently any issues detected with the User Reporting service. Are your reports not loading when you visit the dashboard, or are you seeing a different kind of issue? Are you using an Ad Blocker of any kind? We've recently learned that this can interfere with how the dashboard loads reports.
     
  8. any_user

    any_user

    Joined:
    Oct 19, 2008
    Posts:
    374
    The iOS build fails when trying to upload (?) symbols. The build failed with this error message:
    "Please provide an auth token with USYM_UPLOAD_AUTH_TOKEN environment variable"

    We use -batchmode -username aaa -password bbb to build, and it worked for the last few months without problems, so I assume it's not a problem on our side. We're using Unity 2019.4.0 and there were no changes to the project since last time it worked.

    Currently it works again (no error message). Sometimes it just doesn't work and then it works again a few hours later. Is there any way to better understand what's the problem exactly?
     
  9. any_user

    any_user

    Joined:
    Oct 19, 2008
    Posts:
    374
    Ok, it looks like it's not a unity-related issue. Instead it's caused by DNS blacklists in the network of our office-building. It causes some domains to be blocked by issuing dummy certificates, so the error messages are not very clear, the request just fails with a security error. Not sure why the unity servers were temporarily blacklisted though.
     
  10. AlanMattano

    AlanMattano

    Joined:
    Aug 22, 2013
    Posts:
    1,501
    It is caused by the VPN.
    And presume probably in conjunction with antivirus that blocks an ip.