【问题标题】:MassTransit - Exception during receive message in MassTransit.ReceiveTransportMassTransit - Exception during receive message in MassTransit.ReceiveTransport
【发布时间】:2022-12-01 20:54:05
【问题描述】:

I get the following weird error when mt tries to receive message from queue.

Guid should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).

at System.Guid.GuidResult.SetFailure(Boolean overflow, String failureMessageID)
at System.Guid.TryParseExactD(ReadOnlySpan`1 guidString, GuidResult& result)
at System.Guid.TryParseGuid(ReadOnlySpan`1 guidString, GuidResult& result)
at System.Guid..ctor(String g)
at System.ComponentModel.GuidConverter.ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, Object value)
at System.ComponentModel.TypeConverter.ConvertFromInvariantString(String text)
at Microsoft.Extensions.Configuration.ConfigurationBinder.TryConvertValue(Type type, String value, String path, Object& result, Exception& error)
--- End of stack trace from previous location ---
at MassTransit.Util.TaskUtil.<>c__DisplayClass21_0`1.<<DisposeAsync>g__Faulted|0>d.MoveNext()
--- End of stack trace from previous location ---
at MassTransit.Scoping.ScopeConsumerFactory`1.Send[TMessage](ConsumeContext`1 context, IPipe`1 next)
at MassTransit.Pipeline.Filters.ConsumerMessageFilter`2.GreenPipes.IFilter<MassTransit.ConsumeContext<TMessage>>.Send(ConsumeContext`1 context, IPipe`1 next)
at MassTransit.Pipeline.Filters.ConsumerMessageFilter`2.GreenPipes.IFilter<MassTransit.ConsumeContext<TMessage>>.Send(ConsumeContext`1 context, IPipe`1 next)
at MassTransit.Pipeline.Filters.ConcurrencyLimit.ConsumeConcurrencyLimitFilter`1.Send(ConsumeContext`1 context, IPipe`1 next)
at GreenPipes.Filters.TeeFilter`1.<>c__DisplayClass5_0.<<Send>g__SendAsync|1>d.MoveNext()
--- End of stack trace from previous location ---
at GreenPipes.Filters.OutputPipeFilter`2.SendToOutput(IPipe`1 next, TOutput pipeContext)
at GreenPipes.Filters.OutputPipeFilter`2.SendToOutput(IPipe`1 next, TOutput pipeContext)
at MassTransit.Pipeline.Filters.DeserializeFilter.Send(ReceiveContext context, IPipe`1 next)
at GreenPipes.Filters.RescueFilter`2.GreenPipes.IFilter<TContext>.Send(TContext context, IPipe`1 next)

My consumer is not executed and the message goes to _error queue. We use MassTransit 7.3.0

I don't change anything, the same code works fine on another server (uat).

【问题讨论】:

    标签: masstransit


    【解决方案1】:
    at Microsoft.Extensions.Configuration.ConfigurationBinder.TryConvertValue(Type type, String value, String path, Object& result, Exception& error)
    

    Clearly, something in your configuration is expecting a Guid value, and it isn't aGuid. The fact this it is happening when trying to resolve a consumer from the container doesn't appear to be the root cause.

    【讨论】:

      猜你喜欢
      • 2022-12-02
      • 1970-01-01
      • 2022-12-02
      • 2017-08-14
      • 1970-01-01
      • 2012-06-03
      • 2022-12-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多