Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save baruchadi/064137491758448b96f9ee71f2ba8832 to your computer and use it in GitHub Desktop.
Save baruchadi/064137491758448b96f9ee71f2ba8832 to your computer and use it in GitHub Desktop.
InvalidCastException: Cannot cast Newtonsoft.Json.Linq.JObject to Newtonsoft.Json.Linq.JToken.
Newtonsoft.Json.Linq.Extensions.Convert[T,U] (T token) (at <72bc94bec6c44acf84d97f15326490ac>:0)
Newtonsoft.Json.Linq.Extensions.Value[T,U] (System.Collections.Generic.IEnumerable`1[T] value) (at <72bc94bec6c44acf84d97f15326490ac>:0)
Newtonsoft.Json.Linq.Extensions.Value[U] (System.Collections.Generic.IEnumerable`1[T] value) (at <72bc94bec6c44acf84d97f15326490ac>:0)
Unity.RemoteConfig.Editor.UIComponents.SettingsTreeView.CellGUI (UnityEngine.Rect cellRect, Unity.RemoteConfig.Editor.UIComponents.TreeViewItem`1[T] item, System.Int32 column, UnityEditor.IMGUI.Controls.TreeView+RowGUIArgs& args) (at Library/PackageCache/com.unity.remote-config@1.3.1-preview.1/Editor/UIComponents/SettingsTreeview.cs:414)
Unity.RemoteConfig.Editor.UIComponents.SettingsTreeView.RowGUI (UnityEditor.IMGUI.Controls.TreeView+RowGUIArgs args) (at Library/PackageCache/com.unity.remote-config@1.3.1-preview.1/Editor/UIComponents/SettingsTreeview.cs:276)
UnityEditor.IMGUI.Controls.TreeView+TreeViewControlGUI.OnContentGUI (UnityEngine.Rect rect, System.Int32 row, UnityEditor.IMGUI.Controls.TreeViewItem item, System.String label, System.Boolean selected, System.Boolean focused, System.Boolean useBoldFont, System.Boolean isPinging) (at /Users/builduser/buildslave/unity/build/Editor/Mono/GUI/TreeView/TreeViewControl/TreeViewControlGUI.cs:136)
UnityEditor.IMGUI.Controls.TreeViewGUI.DoItemGUI (UnityEngine.Rect rect, System.Int32 row, UnityEditor.IMGUI.Controls.TreeViewItem item, System.Boolean selected, System.Boolean focused, System.Boolean useBoldFont) (at /Users/builduser/buildslave/unity/build/Editor/Mono/GUI/TreeView/TreeViewGUI.cs:369)
UnityEditor.IMGUI.Controls.TreeViewGUI.OnRowGUI (UnityEngine.Rect rowRect, UnityEditor.IMGUI.Controls.TreeViewItem item, System.Int32 row, System.Boolean selected, System.Boolean focused) (at /Users/builduser/buildslave/unity/build/Editor/Mono/GUI/TreeView/TreeViewGUI.cs:295)
UnityEditor.IMGUI.Controls.TreeViewController.DoItemGUI (UnityEditor.IMGUI.Controls.TreeViewItem item, System.Int32 row, System.Single rowWidth, System.Boolean hasFocus) (at /Users/builduser/buildslave/unity/build/Editor/Mono/GUI/TreeView/TreeViewController.cs:505)
UnityEditor.IMGUI.Controls.TreeViewController.IterateVisibleItems (System.Int32 firstRow, System.Int32 numVisibleRows, System.Single rowWidth, System.Boolean hasFocus) (at /Users/builduser/buildslave/unity/build/Editor/Mono/GUI/TreeView/TreeViewController.cs:703)
UnityEditor.IMGUI.Controls.TreeViewController.OnGUI (UnityEngine.Rect rect, System.Int32 keyboardControlID) (at /Users/builduser/buildslave/unity/build/Editor/Mono/GUI/TreeView/TreeViewController.cs:606)
UnityEditor.IMGUI.Controls.TreeView.TreeViewWithMultiColumnHeader (UnityEngine.Rect rect) (at /Users/builduser/buildslave/unity/build/Editor/Mono/GUI/TreeView/TreeViewControl/TreeViewControl.cs:447)
UnityEditor.IMGUI.Controls.TreeView.OnGUI (UnityEngine.Rect rect) (at /Users/builduser/buildslave/unity/build/Editor/Mono/GUI/TreeView/TreeViewControl/TreeViewControl.cs:421)
Unity.RemoteConfig.Editor.UIComponents.SettingsTreeview.OnGUI (UnityEngine.Rect viewRect) (at Library/PackageCache/com.unity.remote-config@1.3.1-preview.1/Editor/UIComponents/SettingsTreeview.cs:126)
Unity.RemoteConfig.Editor.RemoteConfigWindow.DrawConfigsSettingsTreeView (UnityEngine.Rect treeViewRect) (at Library/PackageCache/com.unity.remote-config@1.3.1-preview.1/Editor/RemoteConfigWindow.cs:705)
Unity.RemoteConfig.Editor.RemoteConfigWindow.DrawConfigsSettingsPane (UnityEngine.Rect configsDetailsRect) (at Library/PackageCache/com.unity.remote-config@1.3.1-preview.1/Editor/RemoteConfigWindow.cs:688)
Unity.RemoteConfig.Editor.RemoteConfigWindow.OnGUI () (at Library/PackageCache/com.unity.remote-config@1.3.1-preview.1/Editor/RemoteConfigWindow.cs:257)
System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <437ba245d8404784b9fbab9b439ac908>:0)
Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <437ba245d8404784b9fbab9b439ac908>:0)
System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at <437ba245d8404784b9fbab9b439ac908>:0)
UnityEditor.HostView.Invoke (System.String methodName, System.Object obj) (at /Users/builduser/buildslave/unity/build/Editor/Mono/HostView.cs:380)
UnityEditor.HostView.Invoke (System.String methodName) (at /Users/builduser/buildslave/unity/build/Editor/Mono/HostView.cs:374)
UnityEditor.HostView.InvokeOnGUI (UnityEngine.Rect onGUIPosition, UnityEngine.Rect viewRect) (at /Users/builduser/buildslave/unity/build/Editor/Mono/HostView.cs:350)
UnityEditor.DockArea.DrawView (UnityEngine.Rect viewRect, UnityEngine.Rect dockAreaRect) (at /Users/builduser/buildslave/unity/build/Editor/Mono/GUI/DockArea.cs:401)
UnityEditor.DockArea.OldOnGUI () (at /Users/builduser/buildslave/unity/build/Editor/Mono/GUI/DockArea.cs:390)
UnityEngine.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event evt, UnityEngine.Matrix4x4 parentTransform, UnityEngine.Rect clippingRect, System.Boolean isComputingLayout, UnityEngine.Rect layoutSize, System.Action onGUIHandler, System.Boolean canAffectFocus) (at /Users/builduser/buildslave/unity/build/Modules/UIElements/IMGUIContainer.cs:293)
UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, UnityEngine.Matrix4x4 worldTransform, UnityEngine.Rect clippingRect, System.Action onGUIHandler, System.Boolean canAffectFocus) (at /Users/builduser/buildslave/unity/build/Modules/UIElements/IMGUIContainer.cs:508)
UnityEngine.UIElements.IMGUIContainer.DoIMGUIRepaint () (at /Users/builduser/buildslave/unity/build/Modules/UIElements/IMGUIContainer.cs:463)
UnityEngine.UIElements.UIR.RenderChainCommand.ExecuteNonDrawMesh (UnityEngine.UIElements.UIR.DrawParams drawParams, System.Boolean straightY, System.Single pixelsPerPoint, System.Exception& immediateException) (at /Users/builduser/buildslave/unity/build/Modules/UIElements/Renderer/UIRenderer/UIRenderers.cs:107)
Rethrow as ImmediateModeException
UnityEngine.UIElements.UIR.RenderChain.Render (UnityEngine.Rect viewport, UnityEngine.Matrix4x4 projection, UnityEngine.UIElements.PanelClearFlags clearFlags) (at /Users/builduser/buildslave/unity/build/Modules/UIElements/Renderer/UIRChainBuilder.cs:392)
UnityEngine.UIElements.UIRRepaintUpdater.DrawChain (UnityEngine.Rect viewport, UnityEngine.Matrix4x4 projection) (at /Users/builduser/buildslave/unity/build/Modules/UIElements/Renderer/UIRRepaintUpdater.cs:68)
UnityEngine.UIElements.UIRRepaintUpdater.Update () (at /Users/builduser/buildslave/unity/build/Modules/UIElements/Renderer/UIRRepaintUpdater.cs:57)
UnityEngine.UIElements.VisualTreeUpdater.UpdateVisualTreePhase (UnityEngine.UIElements.VisualTreeUpdatePhase phase) (at /Users/builduser/buildslave/unity/build/Modules/UIElements/VisualTreeUpdater.cs:84)
UnityEngine.UIElements.Panel.UpdateForRepaint () (at /Users/builduser/buildslave/unity/build/Modules/UIElements/Panel.cs:712)
UnityEngine.UIElements.Panel.Repaint (UnityEngine.Event e) (at /Users/builduser/buildslave/unity/build/Modules/UIElements/Panel.cs:738)
UnityEngine.UIElements.UIElementsUtility.DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) (at /Users/builduser/buildslave/unity/build/Modules/UIElements/UIElementsUtility.bindings.cs:387)
UnityEngine.UIElements.UIElementsUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at /Users/builduser/buildslave/unity/build/Modules/UIElements/UIElementsUtility.bindings.cs:194)
UnityEngine.GUIUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at /Users/builduser/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:187)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment