elsa-workflows / elsa-workflows/elsa-core
Type Elsa.Activities.Http.Models.HttpRequestModel is not configured
- 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
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