Search Unity

Bug External links don't open from Editor [1363749]

Discussion in '2022.1 Alpha' started by Lurking-Ninja, Sep 8, 2021.

  1. Lurking-Ninja

    Lurking-Ninja

    Joined:
    Jan 20, 2015
    Posts:
    7,458
    Submitted bug report [1363749].

    1. What happened
    Error was thrown when clicked on an external link.

    2. How can we reproduce it using the example you attached
    - open package manager in 2022.1a7
    - select any package with external links in the description
    - click any external links (documentation, changelog, license - see attached screenshot)
    - observe the console with the following error
    - observe that the URL isn't opening

    screenshot.png

    Error:
    Code (CSharp):
    1. InvalidOperationException: Insecure connection not allowed
    2. UnityEngine.Networking.UnityWebRequest.SendWebRequest () (at <76058dd63a724d2cb1d0012be8ee668b>:0)
    3. UnityEditor.PackageManager.UI.Internal.PackageDetailsLinks.ViewUrl (System.String onlineUrl, System.String offlineDocPath, System.String docType, System.String analyticsEvent) (at <4355f4acd9c0472cb2cb8a3551b83bdb>:0)
    4. UnityEditor.PackageManager.UI.Internal.PackageDetailsLinks.ViewDocClick () (at <4355f4acd9c0472cb2cb8a3551b83bdb>:0)
    5. UnityEngine.UIElements.Clickable.Invoke (UnityEngine.UIElements.EventBase evt) (at <e2dfc7c9d63d4ab49fa3f2013541215b>:0)
    6. UnityEngine.UIElements.Clickable.ProcessUpEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.Vector2 localPosition, System.Int32 pointerId) (at <e2dfc7c9d63d4ab49fa3f2013541215b>:0)
    7. UnityEngine.UIElements.Clickable.OnMouseUp (UnityEngine.UIElements.MouseUpEvent evt) (at <e2dfc7c9d63d4ab49fa3f2013541215b>:0)
    8. UnityEngine.UIElements.EventCallbackFunctor`1[TEventType].Invoke (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.PropagationPhase propagationPhase) (at <e2dfc7c9d63d4ab49fa3f2013541215b>:0)
    9. UnityEngine.UIElements.EventCallbackRegistry.InvokeCallbacks (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.PropagationPhase propagationPhase) (at <e2dfc7c9d63d4ab49fa3f2013541215b>:0)
    10. UnityEngine.UIElements.CallbackEventHandler.HandleEvent (UnityEngine.UIElements.EventBase evt) (at <e2dfc7c9d63d4ab49fa3f2013541215b>:0)
    11. UnityEngine.UIElements.TextElement.HandleEvent (UnityEngine.UIElements.EventBase evt) (at <e2dfc7c9d63d4ab49fa3f2013541215b>:0)
    12. UnityEngine.UIElements.CallbackEventHandler.HandleEventAtTargetPhase (UnityEngine.UIElements.EventBase evt) (at <e2dfc7c9d63d4ab49fa3f2013541215b>:0)
    13. UnityEngine.UIElements.MouseCaptureDispatchingStrategy.DispatchEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <e2dfc7c9d63d4ab49fa3f2013541215b>:0)
    14. UnityEngine.UIElements.EventDispatcher.ApplyDispatchingStrategies (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel, System.Boolean imguiEventIsInitiallyUsed) (at <e2dfc7c9d63d4ab49fa3f2013541215b>:0)
    15. UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <e2dfc7c9d63d4ab49fa3f2013541215b>:0)
    16. UnityEngine.UIElements.EventDispatcher.ProcessEventQueue () (at <e2dfc7c9d63d4ab49fa3f2013541215b>:0)
    17. UnityEngine.UIElements.EventDispatcher.OpenGate () (at <e2dfc7c9d63d4ab49fa3f2013541215b>:0)
    18. UnityEngine.UIElements.EventDispatcherGate.Dispose () (at <e2dfc7c9d63d4ab49fa3f2013541215b>:0)
    19. UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <e2dfc7c9d63d4ab49fa3f2013541215b>:0)
    20. UnityEngine.UIElements.EventDispatcher.Dispatch (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel, UnityEngine.UIElements.DispatchMode dispatchMode) (at <e2dfc7c9d63d4ab49fa3f2013541215b>:0)
    21. UnityEngine.UIElements.BaseVisualElementPanel.SendEvent (UnityEngine.UIElements.EventBase e, UnityEngine.UIElements.DispatchMode dispatchMode) (at <e2dfc7c9d63d4ab49fa3f2013541215b>:0)
    22. UnityEngine.UIElements.UIElementsUtility.DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) (at <e2dfc7c9d63d4ab49fa3f2013541215b>:0)
    23. UnityEngine.UIElements.UIElementsUtility.UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& eventHandled) (at <e2dfc7c9d63d4ab49fa3f2013541215b>:0)
    24. UnityEngine.UIElements.UIEventRegistration.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at <e2dfc7c9d63d4ab49fa3f2013541215b>:0)
    25. UnityEngine.UIElements.UIEventRegistration+<>c.<.cctor>b__1_2 (System.Int32 i, System.IntPtr ptr) (at <e2dfc7c9d63d4ab49fa3f2013541215b>:0)
    26. UnityEngine.GUIUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& result) (at <5ce162716ff54f1f8c9d6d8faf2439cd>:0)
     
    Last edited: Sep 9, 2021
    mariandev and Ruchir like this.
  2. KamilDA

    KamilDA

    Joined:
    May 21, 2020
    Posts:
    183
    Is it possible you're doing an insecure call?

    Code (CSharp):
    1. InvalidOperationException: Insecure connection not allowed
    Networking: UnityWebRequest by default is HTTPS only now. Plain text HTTP can be enabled in Player Settings.
     
  3. Lurking-Ninja

    Lurking-Ninja

    Joined:
    Jan 20, 2015
    Posts:
    7,458
    No.
     
  4. KamilDA

    KamilDA

    Joined:
    May 21, 2020
    Posts:
    183
    So, I set "Allow Insecure Links" in the player options and it stopped throwing the error in the editor (links opened but only after a while).

    So it seems related.

    But it actually made the editor crash from what it seems like an infinite loop of webrequests...
     
  5. LeonhardP

    LeonhardP

    Unity Technologies

    Joined:
    Jul 4, 2016
    Posts:
    2,749
    Lurking-Ninja likes this.
  6. Lurking-Ninja

    Lurking-Ninja

    Joined:
    Jan 20, 2015
    Posts:
    7,458
unityunity