[SOLVED] Unable to cast object of type AssetChangedTriggerV2 to ContentChangedTriggerV2

I have…

  • [x] Checked the logs and have uploaded a log file and provided a link because I found something suspicious there. Please do not post the log file in the topic because very often something important is missing.

I’m submitting a…

  • [ ] Regression (a behavior that stopped working in a new release)
  • [x] Bug report
  • [ ] Performance issue
  • [ ] Documentation issue or request

Current behavior

I found this error in the log. I am not sure if i should ignore it or not.

{message: ‘Unable to cast object of type ‘‘Squidex.Domain.Apps.Core.Rules.Triggers.AssetChangedTriggerV2’’ to type ‘‘Squidex.Domain.Apps.Core.Rules.Triggers.ContentChangedTriggerV2’’.’, stackTrace: ’ at Squidex.Domain.Apps.Entities.Contents.ContentChangedTriggerHandler.TriggerReferences(EnrichedEvent event, Rule rule) in /src/src/Squidex.Domain.Apps.Entities/Contents/ContentChangedTriggerHandler.cs:line 249
at System.Linq.Enumerable.Any[TSource](IEnumerable1 source, Func2 predicate)
at Squidex.Domain.Apps.Entities.Contents.ContentChangedTriggerHandler.CreateEnrichedEventsAsync(Envelope1 event, RulesContext context, CancellationToken ct)+MoveNext() in /src/src/Squidex.Domain.Apps.Entities/Contents/ContentChangedTriggerHandler.cs:line 122 at Squidex.Domain.Apps.Entities.Contents.ContentChangedTriggerHandler.CreateEnrichedEventsAsync(Envelope1 event, RulesContext context, CancellationToken ct)+System.Threading.Tasks.Sources.IValueTaskSource<System.Boolean>.GetResult()
at System.Linq.AsyncEnumerablePartition1.MoveNextCore() in /_/Ix.NET/Source/System.Linq.Async/System/Linq/AsyncEnumerablePartition.cs:line 152 at System.Linq.AsyncIteratorBase1.MoveNextAsync() in /_/Ix.NET/Source/System.Linq.Async/System/Linq/AsyncIterator.cs:line 77
at System.Linq.AsyncIteratorBase1.MoveNextAsync() in /_/Ix.NET/Source/System.Linq.Async/System/Linq/AsyncIterator.cs:line 77 at Squidex.Domain.Apps.Core.HandleRules.RuleService.CreateTriggerJobs(Envelope1 event, IRuleTriggerHandler triggerHandler, List1 states, Instant now, RulesContext context, CancellationToken ct)+MoveNext() in /src/src/Squidex.Domain.Apps.Core.Operations/HandleRules/RuleService.cs:line 386 at Squidex.Domain.Apps.Core.HandleRules.RuleService.CreateTriggerJobs(Envelope1 event, IRuleTriggerHandler triggerHandler, List1 states, Instant now, RulesContext context, CancellationToken ct)+MoveNext() in /src/src/Squidex.Domain.Apps.Core.Operations/HandleRules/RuleService.cs:line 386 at Squidex.Domain.Apps.Core.HandleRules.RuleService.CreateTriggerJobs(Envelope1 event, IRuleTriggerHandler triggerHandler, List1 states, Instant now, RulesContext context, CancellationToken ct)+System.Threading.Tasks.Sources.IValueTaskSource<System.Boolean>.GetResult() at Squidex.Infrastructure.CollectionExtensions.<Catch>g__Core|37_0[TSource](IAsyncEnumerable1 source, Func`2 handler, CancellationToken ct)+MoveNext() in /src/src/Squidex.Infrastructure/CollectionExtensions.cs:line 472’, type: ‘System.InvalidCastException’}

Expected behavior

Minimal reproduction of the problem

Environment

  • [x] Self hosted with docker
  • [ ] Self hosted with IIS
  • [ ] Self hosted with other version
  • [ ] Cloud version

Version: 7.8.1.0

Browser:

  • [ ] Chrome (desktop)
  • [ ] Chrome (Android)
  • [ ] Chrome (iOS)
  • [ ] Firefox
  • [ ] Safari (desktop)
  • [ ] Safari (iOS)
  • [ ] IE
  • [ ] Edge

Others:

Thanks. This is already fixed. I just have to make a new release.

1 Like

This topic was automatically closed after 2 days. New replies are no longer allowed.