HttpRequestException: Response status code does not indicate success: 401 (Unauthorized) In Elsa Studio when I try to get the IDs of my suspended tasks to select one of them and complete it via Json in Postman #6109
stefanie24
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, @sfmskywalker! How r u?
Can u help me, please?
My 3 parallel tasks are suspended and I can't see their id to choose one and continue in my flow, when having to view them through elsa studio it gives this error whenever the tasks are in suspended mode. I'm using this link: https://elsa-workflows.github.io/elsa-documentation/external-application-interaction.html#create-the-workflow.
My first run task works well:
1° step
https://localhost:5006/elsa/api/workflow-definitions/afbe71dc42d67d4a/execute
Content-Type: application/json
Authorization:ApiKey 00000000-0000-0000-0000-000000000000
My body:
{
"input": {
"Employee": {
"Name": "Alice Smith",
"Email": "[email protected]"
}
}
}
2° step
https://localhost:5001/elsa/api/tasks/d6af15d868ee3f22/complete
Content-Type: application/json
Authorization:ApiKey 00000000-0000-0000-0000-000000000000
My body:
{
"workflowState": {
"id": "3a8e92d452a179a6",
"definitionId": "Onboarding",
"definitionVersionId": "97827000346f3daa",
"definitionVersion": 1,
"status": "Running",
"subStatus": "Suspended",
"bookmarks": [
{
"id": "e97feb1e5b214d18",
"name": "Elsa.RunTask",
"hash": "7613D79D81417F97D1067F27C0943D1E9C06BC5B02B01BEA7BA1099DA8017785",
"payload": {
"taskId": "d6af15d868ee3f22",
"taskName": "Create Email Account"
},
"activityId": "RunTask1",
"activityNodeId": "Workflow1:Sequence1:RunTask1",
"activityInstanceId": "d5ff9b6fc740a2b1",
"createdAt": "2024-11-11T13:20:27.7168953+00:00",
"autoBurn": true,
"callbackMethodName": "ResumeAsync",
"autoComplete": true
}
],
"incidents": [],
"completionCallbacks": [
{
"ownerInstanceId": "94a042b949237a14",
"childNodeId": "Workflow1:Sequence1",
"methodName": "OnRootCompletedAsync"
},
{
"ownerInstanceId": "ab8f78588d6ddbc8",
"childNodeId": "Workflow1:Sequence1:RunTask1",
"methodName": "OnChildCompleted"
}
],
"activityExecutionContexts": [
{
"id": "d5ff9b6fc740a2b1",
"parentContextId": "ab8f78588d6ddbc8",
"scheduledActivityNodeId": "Workflow1:Sequence1:RunTask1",
"ownerActivityNodeId": "Workflow1:Sequence1",
"properties": {},
"activityState": {
"TaskName": "Create Email Account",
"Payload": {
"Employee": {
"Name": "Alice Smith",
"Email": "[email protected]"
},
"Description": "Create an email account"
}
},
"dynamicVariables": [],
"status": "Running",
"startedAt": "2024-11-11T13:20:27.716233+00:00"
},
{
"id": "69de12b65dca04bd",
"parentContextId": "ab8f78588d6ddbc8",
"scheduledActivityNodeId": "Workflow1:Sequence1:SetVariable1",
"ownerActivityNodeId": "Workflow1:Sequence1",
"properties": {},
"activityState": {
"Variable": {
"Name": "Variable_0",
"Value": null,
"StorageDriverType": "Elsa.Workflows.Services.WorkflowStorageDriver, Elsa.Workflows.Core",
"Id": "Workflow1:variable-1"
},
"Value": {
"Name": "Alice Smith",
"Email": "[email protected]"
}
},
"dynamicVariables": [],
"status": "Completed",
"startedAt": "2024-11-11T13:20:27.7143317+00:00",
"completedAt": "2024-11-11T13:20:27.7162101+00:00"
},
{
"id": "ab8f78588d6ddbc8",
"parentContextId": "94a042b949237a14",
"scheduledActivityNodeId": "Workflow1:Sequence1",
"ownerActivityNodeId": "Workflow1",
"properties": {
"CurrentIndex": 2
},
"activityState": {},
"dynamicVariables": [],
"status": "Running",
"startedAt": "2024-11-11T13:20:27.7142907+00:00"
},
{
"id": "94a042b949237a14",
"scheduledActivityNodeId": "Workflow1",
"properties": {
"PersistentVariablesDictionary": {
"Workflow1:variable-1": {
"Name": "Alice Smith",
"Email": "[email protected]"
}
}
},
"activityState": {},
"dynamicVariables": [],
"status": "Running",
"startedAt": "2024-11-11T13:20:27.7141799+00:00"
}
],
"scheduledActivities": [],
"executionLogSequence": 6,
"input": {},
"output": {},
"properties": {},
"createdAt": "2024-11-11T13:20:27.7133395+00:00",
"updatedAt": "2024-11-11T13:20:27.7547487+00:00"
}
}
how can I get my 3 parallel task IDs to repeat the same success as the first run task?
Beta Was this translation helpful? Give feedback.
All reactions