Chat callback not returning data.

I have chat installed on 10.3.6

When the chat window appears and I input a message, the message doesn't show up as sent unless I refresh the page.

Debugging I see ths URL being called, with an empty response of "{}"
mydomain.com/callback.ashx?__type=Telligent.Evolution.Chat.Plugins.ChatHttpCallbackPlugin%2C%20Telligent.Evolution.Chat

Parents Reply Children
  • Ideally, none of this should be taken individually. As a check, I'd ensure the scripts in /Utility/jQuery match the out-of-the-box files for the same version of Community. If not, I suppose copying those over is okay, but I'd worry about what else may have been mismatched. Copying/comparing individual DLLs between versions will be risky.

  • I updated all the DLLs and all the files from the hotfix package and I'm still seeing the 404
    /socket.ashx/negotiate?clientProtocol=1.5&_=1597171415667 404

  • Verified jQuery scripts and updated all the DLLS...still seeing the same link come through with a 404

  • Well, a bit of a false alarm here. While Community 10 did upgrade to SignalR 2, SignalR's own protocol didn't switch 1.5 to 2 until SignalR 2.4 (it seems), which Community 10.x does not have - only 11 does.

    Back to the 404: I'm curious if perhaps there's an issue with plugin initialization preventing the handler plugin from having registered? Possible to collect a diagnostic export concurrent with when this happens? And when it does happen, does an app restart ever "fix" it?

    I'm still unable to reproduce this with the same platform and chat versions.

  • Still getting 404 on the socket.ashx...  what do I need to check for this?  as of now I have  the most recent 10.3.6.x hotfix applied...all DLLs and web files along with jobs, but still get the 404

  • I found this exception

    UnknownException: An error occurred while processing a handler before plugin initialization. (An error occurred while initializing plugins. Details of the issue were logged for review by the administrator.) ---> System.MissingMethodException: Method not found: 'Telligent.Evolution.Components.CSException Telligent.Evolution.Components.CSException.Unknown(Telligent.Evolution.Components.CSExceptionType, System.String, System.Exception)'.
       at Telligent.Evolution.Chat.Implementation.LoggingService.Error(String message, Exception ex)
       at Telligent.Evolution.Chat.Implementation.ChatSocketHandler.Clients_Disconnected(Object sender, UserDisconnectedEventArgs e)
       at Telligent.Evolution.CoreServices.Sockets.Implementations.ClientsController.RaiseDisconnected(UserDisconnectedEventArgs eventArgs)
       at Telligent.Evolution.CoreServices.Sockets.Implementations.SocketHostPlugin.<>c.<_pluginManager_BeforeInitialization>b__30_0(SocketContext socket)
       at System.Collections.Generic.List`1.ForEach(Action`1 action)
       at Telligent.Evolution.Components.PluginManager.ExecuteAndClearBeforeInitializationEvent()
       --- End of inner exception stack trace ---
       at Telligent.Evolution.Platform.Logging.ErrorLogger.PluginInitError(String message, Exception ex)
       at Telligent.Evolution.Components.PluginManager.ExecuteAndClearBeforeInitializationEvent()
       at Telligent.Evolution.Components.PluginManager.<EnsureEnabledPluginsLoadedAndInitialized>b__44_0()
       at Telligent.Evolution.Components.DistributedLockService.Lock(String lockKey, Action action)
       at Telligent.Evolution.Components.PluginManager.EnsureEnabledPluginsLoadedAndInitialized()
       at Telligent.Evolution.Components.PluginManager.Initialize(Boolean distribute)
       at Telligent.Evolution.Api.Plugins.Administration.AboutAdministrationPanel.PanelContextApi.ReloadPlugins()
       at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
       at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
       at NVelocity.Runtime.Parser.Node.ASTMethod.Execute(Object o, IInternalContextAdapter context)
       at NVelocity.Runtime.Parser.Node.ASTReference.Execute(Object o, IInternalContextAdapter context)
       at NVelocity.Runtime.Parser.Node.ASTSetDirective.Render(IInternalContextAdapter context, TextWriter writer)
       at NVelocity.Runtime.Parser.Node.ASTBlock.Render(IInternalContextAdapter context, TextWriter writer)
       at NVelocity.Runtime.Parser.Node.ASTIfStatement.Render(IInternalContextAdapter context, TextWriter writer)
       at NVelocity.Runtime.Parser.Node.SimpleNode.Render(IInternalContextAdapter context, TextWriter writer)
       at NVelocity.Template.Merge(IContext context, TextWriter writer)
       at Telligent.Evolution.ScriptedContentFragments.Implementations.ScriptedContentFragmentRenderingService.<>c__DisplayClass28_0.<RenderScriptInternal>b__0()
       at Telligent.Evolution.ScriptedContentFragments.Implementations.ScriptedContentFragmentOutputCachingService.Get(ScriptedContentFragment fragment, String cacheKey, Boolean cacheable, Func`1 getRenderedOutput)
       at Telligent.Evolution.ScriptedContentFragments.Implementations.ScriptedContentFragmentRenderingService.RenderScriptInternal(ScriptedContentFragment contentFragment, NameValueCollection parameters, IPropertyTemplateOptions propertyOptions, String templateName, String internalId, String wrapperId, Boolean throwExceptions, String cacheKey)
       at Telligent.Evolution.ScriptedContentFragments.Implementations.ScriptedContentFragmentRenderingService.RenderScript(ScriptedContentFragment fragment, NameValueCollection parameters, String fileName, String internalId, String wrapperId, Boolean throwExceptions, String cacheKey)
       at Telligent.Evolution.ScriptedContentFragments.Implementations.ScriptedContentFragmentFileExecutionService.RenderFileInternal(HttpContextBase context, String internalId, String wrapperId, ScriptedContentFragment fragment, String fileName, NameValueCollection parameters, IPropertyTemplateOptions propertyOptions)
       at Telligent.Evolution.ScriptedContentFragments.Implementations.ScriptedContentFragmentFileExecutionService.RenderRawFile(HttpContextBase context, NameValueCollection parameters, IPropertyTemplateOptions propertyOptions, ScriptedContentFragment fragment, String fragmentId, String containerType, Guid themeTypeId, Guid themeContextId, Guid themeId, String fileName, String wrapperId)
       at Telligent.Evolution.ScriptedContentFragments.Implementations.ScriptedContentFragmentFileExecutionService.HandleRequest()
       at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
       at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
       at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
       at System.Web.HttpApplication.PipelineStepManager.ResumeSteps(Exception error)
       at System.Web.HttpApplication.BeginProcessRequestNotification(HttpContext context, AsyncCallback cb)
       at System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context)
       at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)
       at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)
       at System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion(IntPtr pHandler, RequestNotificationStatus& notificationStatus)
       at System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion(IntPtr pHandler, RequestNotificationStatus& notificationStatus)
       at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)
       at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)

  • Another one

    UnknownException: An error occurred while processing a handler before plugin initialization. (Value not found in Messages.xml en-US for: PluginInitializationError) ---> System.MissingMethodException: Method not found: 'Telligent.Evolution.Components.CSException Telligent.Evolution.Components.CSException.Unknown(Telligent.Evolution.Components.CSExceptionType, System.String, System.Exception)'.
       at Telligent.Evolution.Chat.Implementation.LoggingService.Error(String message, Exception ex)
       at Telligent.Evolution.Chat.Implementation.ChatSocketHandler.Clients_Disconnected(Object sender, UserDisconnectedEventArgs e)
       at Telligent.Evolution.CoreServices.Sockets.Implementations.ClientsController.<>c__DisplayClass36_0.<RaiseDisconnected>b__0()
       at Telligent.Evolution.CoreServices.Sockets.Implementations.ClientsController.TryToRunAsUser(Int32 userId, Action action)
       at Telligent.Evolution.CoreServices.Sockets.Implementations.ClientsController.RaiseDisconnected(UserDisconnectedEventArgs eventArgs)
       at Telligent.Evolution.CoreServices.Sockets.Implementations.SocketHostPlugin.<>c.<_pluginManager_BeforeInitialization>b__30_0(SocketContext socket)
       at System.Collections.Generic.List`1.ForEach(Action`1 action)
       at Telligent.Evolution.CoreServices.Sockets.Implementations.SocketHostPlugin._pluginManager_BeforeInitialization(Object sender, EventArgs e)
       at Telligent.Evolution.Components.PluginManager.ExecuteAndClearBeforeInitializationEvent()
       --- End of inner exception stack trace ---
       at Telligent.Evolution.Components.PluginManager.ExecuteAndClearBeforeInitializationEvent()
       at Telligent.Evolution.Components.PluginManager.<EnsureEnabledPluginsLoadedAndInitialized>b__44_0()
       at Telligent.Evolution.Components.DistributedLockService.Lock(String lockKey, Action action)
       at Telligent.Evolution.Components.PluginManager.EnsureEnabledPluginsLoadedAndInitialized()
       at Telligent.Evolution.Components.PluginManager.Initialize(Boolean distribute)
       at Telligent.Evolution.Components.PluginManager.MessageBus_Received(Object sender, MessageBusReceivedEventArgs e)
       at System.EventHandler`1.Invoke(Object sender, TEventArgs e)
       at Telligent.Evolution.CoreServices.MessageBus.Implementations.MessageBus.<>c__DisplayClass15_0.<_internalMessageBus_BusMessagesReceived>b__1(BusMessage s)
       at Telligent.Evolution.CoreServices.MessageBus.Implementations.MessageBus.<>c__DisplayClass16_0`1.<PerformInTaskIfRemote>b__0(Object siteId)
       at System.Threading.Tasks.Task.InnerInvoke()
       at System.Threading.Tasks.Task.Execute()
       at System.Threading.Tasks.Task.ExecutionContextCallback(Object obj)
       at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
       at System.Threading.Tasks.Task.ExecuteEntry(Boolean bPreventDoubleExecution)
       at System.Threading.Tasks.Task.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
       at System.Threading.ThreadPoolWorkQueue.Dispatch()
       at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()

  • UnknownException: An error occurred while attempting to load available plugins. (An error occurred while initializing plugins. Details of the issue were logged for review by the administrator.) ---> System.TypeLoadException: Could not load type 'Telligent.Evolution.Spam.ConfigurableContentScorerBase' from assembly 'Telligent.Evolution.Components, Version=10.3.6.12348, Culture=neutral, PublicKeyToken=null'.
       --- End of inner exception stack trace ---
       at Telligent.Evolution.Components.PluginFinder.LogExceptionInternal(Exception ex, Type t)
       at Telligent.Evolution.Components.PluginFinder.LogException(Exception ex, Type t)
       at Telligent.Common.TypeFinder.FindType(Type †, Ž Œ, Action`2 Œ)
       at Telligent.Common.TypeFinder.FindType(Type type, Action`2 activationErrorHandler)
       at Telligent.Evolution.Components.PluginFinder.FindPlugins()
       at Telligent.Evolution.Components.PluginManager.GetAll(Boolean autoGroupPlugins)
       at Telligent.Evolution.CoreServices.Administration.Implementation.AdministrativePanelService.<>c__DisplayClass44_0`1.<GetPluginPanelsForPluginTypesPanel>b__0()
       at Telligent.Evolution.CoreServices.Administration.Implementation.PanelProvider.Cache[T](String key, Func`1 loader)
       at Telligent.Evolution.CoreServices.Administration.Implementation.AdministrativePanelService.GetPluginPanelsForPluginTypesPanel[T](T pluginTypesAdministrationPanel, Boolean includeUnfilteredAdministrationPlugins)
       at Telligent.Evolution.CoreServices.Administration.Implementation.AdministrativePanelService.<GetPluginTypesPanelsForCategory>b__46_2(IPluginTypesAdministrationPanel p)
       at System.Linq.Enumerable.WhereSelectListIterator`2.MoveNext()
       at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
       at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
       at Telligent.Evolution.CoreServices.Administration.Implementation.AdministrativePanelService.GetPluginTypesPanelsForCategory(Guid categoryId, Int32 userId)
       at Telligent.Evolution.CoreServices.Administration.Implementation.AdministrativePanelService.GetMembersForCategory(Guid categoryId, Int32 userId)
       at Telligent.Evolution.CoreServices.Administration.Implementation.AdministrativePanelsExtension.GetMembersForCategory(Guid categoryId)
       at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
       at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
       at NVelocity.Runtime.Parser.Node.ASTMethod.Execute(Object o, IInternalContextAdapter context)
       at NVelocity.Runtime.Parser.Node.ASTReference.Execute(Object o, IInternalContextAdapter context)
       at NVelocity.Runtime.Parser.Node.ASTSetDirective.Render(IInternalContextAdapter context, TextWriter writer)
       at NVelocity.Runtime.Directive.Foreach.ProcessSection(ForeachSectionEnum sectionEnumType, INode[][] sections, IInternalContextAdapter context, TextWriter writer)
       at NVelocity.Runtime.Directive.Foreach.Render(IInternalContextAdapter context, TextWriter writer, INode node)
       at NVelocity.Runtime.Parser.Node.ASTDirective.Render(IInternalContextAdapter context, TextWriter writer)
       at NVelocity.Runtime.Parser.Node.SimpleNode.Render(IInternalContextAdapter context, TextWriter writer)
       at NVelocity.Template.Merge(IContext context, TextWriter writer)
       at Telligent.Evolution.ScriptedContentFragments.Implementations.ScriptedContentFragmentRenderingService.<>c__DisplayClass28_0.<RenderScriptInternal>b__0()
       at Telligent.Evolution.ScriptedContentFragments.Implementations.ScriptedContentFragmentOutputCachingService.Get(ScriptedContentFragment fragment, String cacheKey, Boolean cacheable, Func`1 getRenderedOutput)
       at Telligent.Evolution.ScriptedContentFragments.Implementations.ScriptedContentFragmentRenderingService.RenderScriptInternal(ScriptedContentFragment contentFragment, NameValueCollection parameters, IPropertyTemplateOptions propertyOptions, String templateName, String internalId, String wrapperId, Boolean throwExceptions, String cacheKey)
       at Telligent.Evolution.ScriptedContentFragments.Implementations.ScriptedContentFragmentRenderingService.RenderScript(ScriptedContentFragment fragment, NameValueCollection parameters, String fileName, String internalId, String wrapperId, Boolean throwExceptions)
       at Telligent.Evolution.VelocityExtensions.Widget.ExecuteFile(String fileName)
       at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
       at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
       at NVelocity.Runtime.Parser.Node.ASTMethod.Execute(Object o, IInternalContextAdapter context)
       at NVelocity.Runtime.Parser.Node.ASTReference.Execute(Object o, IInternalContextAdapter context)
       at NVelocity.Runtime.Parser.Node.ASTMethod.EvalParameters(Object[] parameters, IInternalContextAdapter context)
       at NVelocity.Runtime.Parser.Node.ASTMethod.Execute(Object o, IInternalContextAdapter context)
       at NVelocity.Runtime.Parser.Node.ASTReference.Execute(Object o, IInternalContextAdapter context)
       at NVelocity.Runtime.Parser.Node.ASTReference.Render(IInternalContextAdapter context, TextWriter writer)
       at NVelocity.Runtime.Parser.Node.SimpleNode.Render(IInternalContextAdapter context, TextWriter writer)
       at NVelocity.Template.Merge(IContext context, TextWriter writer)
       at Telligent.Evolution.ScriptedContentFragments.Implementations.ScriptedContentFragmentRenderingService.<>c__DisplayClass28_0.<RenderScriptInternal>b__0()
       at Telligent.Evolution.ScriptedContentFragments.Implementations.ScriptedContentFragmentOutputCachingService.Get(ScriptedContentFragment fragment, String cacheKey, Boolean cacheable, Func`1 getRenderedOutput)
       at Telligent.Evolution.ScriptedContentFragments.Implementations.ScriptedContentFragmentRenderingService.RenderScriptInternal(ScriptedContentFragment contentFragment, NameValueCollection parameters, IPropertyTemplateOptions propertyOptions, String templateName, String internalId, String wrapperId, Boolean throwExceptions, String cacheKey)
       at Telligent.Evolution.ScriptedContentFragments.Implementations.ScriptedContentFragmentRenderingService.RenderScript(ScriptedContentFragment fragment, NameValueCollection parameters, String fileName, String internalId, String wrapperId, Boolean throwExceptions, String cacheKey)
       at Telligent.Evolution.ScriptedContentFragments.Implementations.ScriptedContentFragmentFileExecutionService.RenderFileInternal(HttpContextBase context, String internalId, String wrapperId, ScriptedContentFragment fragment, String fileName, NameValueCollection parameters, IPropertyTemplateOptions propertyOptions)
       at Telligent.Evolution.ScriptedContentFragments.Implementations.ScriptedContentFragmentFileExecutionService.RenderRawFile(HttpContextBase context, NameValueCollection parameters, IPropertyTemplateOptions propertyOptions, ScriptedContentFragment fragment, String fragmentId, String containerType, Guid themeTypeId, Guid themeContextId, Guid themeId, String fileName, String wrapperId)
       at Telligent.Evolution.ScriptedContentFragments.Implementations.ScriptedContentFragmentFileExecutionService.HandleRequest()
       at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
       at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
       at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
       at System.Web.HttpApplication.PipelineStepManager.ResumeSteps(Exception error)
       at System.Web.HttpApplication.BeginProcessRequestNotification(HttpContext context, AsyncCallback cb)
       at System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context)
       at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)
       at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)
       at System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion(IntPtr pHandler, RequestNotificationStatus& notificationStatus)
       at System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion(IntPtr pHandler, RequestNotificationStatus& notificationStatus)
       at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)
       at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)

  • Those first two exceptions are red herrings and are related to a known issue with this combination of Chat/Community builds; this is resolved with newer builds of Chat. That shouldn't be responsible for the 404 or the empty response. 

    If you disable the chat plugin, does /negotiate still 404? It should still attempt to connect to the socket endpoint even without chat enabled.