elsa-workflows / elsa-workflows/elsa-core

Type Elsa.Activities.Http.Models.HttpRequestModel is not configured

Open
#4,012 1 comment 0 reactions 0 assignees View on GitHub
bug triaged
Dominant language
C#
Stars
7.9k
Forks
1.5k
Avg merge
15h 22m
Merged PRs (30d)
114

Description

An error occurred while serializing the ActivityData property of class Elsa.Models.WorkflowInstance: Type Elsa.Activities.Http.Models.HttpRequestModel is not configured as a type that is allowed to be serialized for this instance of ObjectSerializer. Type Elsa.Activities.Http.Models.HttpRequestModel is not configured as a type that is allowed to be serialized for this instance of ObjectSerializer.

var srv = services
.AddElsa(elsa =>
{
Builder = elsa;

Builder
.AddHttpActivities(options =>
{
options.BaseUrl = new Uri(workflowUrl);
})
.UseMongoDbPersistence(options =>
{
options.DatabaseName = host.DatabaseName;
options.ConnectionString = host.ConnectionString;
})

Contributor guide

Open the contributing guide

Research direction

Start with the AddHttpActivities and UseMongoDbPersistence configuration shown in the report, then trace ObjectSerializer handling of WorkflowInstance.ActivityData and HttpRequestModel. Reproduce the serialization failure and identify the relevant configuration or test location. Done means the workflow can persist and serialize this activity data without the reported error.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, mongodb
Domain
backend, databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.