Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice
  2. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  3. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

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

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

  1. 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 by a moderator: Sep 9, 2021
    mariandev and Ruchir like this.
  2. KamilCSPS

    KamilCSPS

    Joined:
    May 21, 2020
    Posts:
    444
    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.
     
    Bastienre4 likes this.
  3. No.
     
  4. KamilCSPS

    KamilCSPS

    Joined:
    May 21, 2020
    Posts:
    444
    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...
     
    kelly_unity282 likes this.
  5. LeonhardP

    LeonhardP

    Unity Technologies

    Joined:
    Jul 4, 2016
    Posts:
    3,132
    Lurking-Ninja likes this.
  6. Bastienre4

    Bastienre4

    Joined:
    Jul 8, 2014
    Posts:
    191
    Thanks.
    Indeed, you can find the setting in the Player Settings.
    upload_2022-6-16_17-46-42.png
     
  7. khanhnbota

    khanhnbota

    Joined:
    Apr 11, 2023
    Posts:
    3
    Bastienre4 likes this.