Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Error when viewing suspended workflow instance #6263

Open
fshahin90 opened this issue Jan 2, 2025 · 0 comments
Open

[BUG] Error when viewing suspended workflow instance #6263

fshahin90 opened this issue Jan 2, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@fshahin90
Copy link

Description

When you try to view a workflow instance with state suspended a 401 error message appear

Steps to Reproduce

Create two workflows:

  • first one is marked as activity and have to events
  • the second calls the first activity

when you run the first activity, and you try to view the instance you get a 401 error
attached are the two workflow definitions
workflow-definitions.zip

Expected Behavior

to be able to view the workflow instance

Actual Behavior

a 401 unauthorized error occur

Screenshots

image

Environment

  • Elsa Package Version: 3.3.0-rc6 also in 3.2.3
  • Operating System: windows
  • Browser and Version: MS Edge
  • Net Core: 9.0

Log Output

warn: Microsoft.AspNetCore.Components.Web.ErrorBoundary[100]
      Unhandled exception rendering component: Response status code does not indicate success: 401 (Unauthorized).
      System.Net.Http.HttpRequestException: Response status code does not indicate success: 401 (Unauthorized).
         at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
         at Microsoft.AspNetCore.Http.Connections.Client.HttpConnection.NegotiateAsync(Uri url, HttpClient httpClient, ILogger logger, CancellationToken cancellationToken)
         at Microsoft.AspNetCore.Http.Connections.Client.HttpConnection.GetNegotiationResponseAsync(Uri uri, CancellationToken cancellationToken)
         at Microsoft.AspNetCore.Http.Connections.Client.HttpConnection.SelectAndStartTransport(TransferFormat transferFormat, CancellationToken cancellationToken)
         at Microsoft.AspNetCore.Http.Connections.Client.HttpConnection.StartAsyncCore(TransferFormat transferFormat, CancellationToken cancellationToken)
         at Microsoft.AspNetCore.Http.Connections.Client.HttpConnection.StartAsync(TransferFormat transferFormat, CancellationToken cancellationToken)
         at Microsoft.AspNetCore.Http.Connections.Client.HttpConnectionFactory.ConnectAsync(EndPoint endPoint, CancellationToken cancellationToken)
         at Microsoft.AspNetCore.Http.Connections.Client.HttpConnectionFactory.ConnectAsync(EndPoint endPoint, CancellationToken cancellationToken)
         at Microsoft.AspNetCore.SignalR.Client.HubConnection.StartAsyncCore(CancellationToken cancellationToken)
         at Microsoft.AspNetCore.SignalR.Client.HubConnection.StartAsyncInner(CancellationToken cancellationToken)
         at Microsoft.AspNetCore.SignalR.Client.HubConnection.StartAsync(CancellationToken cancellationToken)
         at Elsa.Studio.Workflows.Services.WorkflowInstanceObserverFactory.CreateAsync(WorkflowInstanceObserverContext context)
         at Elsa.Studio.Workflows.Components.WorkflowInstanceViewer.Components.Journal.ObserveWorkflowInstanceAsync()
         at Elsa.Studio.Workflows.Components.WorkflowInstanceViewer.Components.Journal.UpdateObserverAsync()
         at Elsa.Studio.Workflows.Components.WorkflowInstanceViewer.Components.Journal.SetWorkflowInstanceAsync(WorkflowInstance workflowInstance, JournalFilter filter)
         at Elsa.Studio.Workflows.Components.WorkflowInstanceViewer.WorkflowInstanceViewer.SelectWorkflowInstanceAsync(WorkflowInstance instance)
         at Elsa.Studio.Workflows.Components.WorkflowInstanceViewer.WorkflowInstanceViewer.OnInitializedAsync()
         at Microsoft.AspNetCore.Components.ComponentBase.RunInitAndSetParametersAsync()
         at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle, ComponentState owningComponentState)
@fshahin90 fshahin90 added the bug Something isn't working label Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant