<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/masstransit-disable-fault-publishing-rbng8zlfo" -->

---
title: MassTransit–Disable fault publishing | daily.dev
description: By default, when a message consumer in MassTransit throws an exception, the exception is caught by middleware and the message is moved to an error queue....
canonical: https://daily.dev/posts/masstransit-disable-fault-publishing-rbng8zlfo
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: MassTransit–Disable fault publishing | daily.dev
og:description: By default, when a message consumer in MassTransit throws an exception, the exception is caught by middleware and the message is moved to an error queue....
og:url: https://daily.dev/posts/masstransit-disable-fault-publishing-rbng8zlfo
og:image: https://api.daily.dev/og/posts/RBnG8zLFO.png
og:image:alt: MassTransit–Disable fault publishing
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# MassTransit–Disable fault publishing

**[The Art of Simplicity](https://daily.dev/sources/bartwullems)** · 2 min read · 1 upvotes · 0 comments

## Summary

By default, when a message consumer in MassTransit throws an exception, the exception is caught by middleware and the message is moved to an error queue. MassTransit also produces a Fault event, but it can be disabled by setting the PublishFaults property to false in the MassTransit configuration.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://bartwullems.blogspot.com/2024/03/masstransitdisable-fault-publishing.html>

---

Tags: [#architecture](https://daily.dev/tags/architecture), [#rabbitmq](https://daily.dev/tags/rabbitmq)

[View this post on daily.dev](https://daily.dev/posts/masstransit-disable-fault-publishing-rbng8zlfo)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"MassTransit–Disable fault publishing","url":"https://daily.dev/posts/masstransit-disable-fault-publishing-rbng8zlfo","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/masstransit-disable-fault-publishing-rbng8zlfo"},"datePublished":"2024-03-12T08:04:20.271Z","dateModified":"2024-05-09T08:20:02.615Z","description":"By default, when a message consumer in MassTransit throws an exception, the exception is caught by middleware and the message is moved to an error queue....","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/f152b16dd88a03caf1ac5f3f15769b5e?_a=AQAEufR","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/f152b16dd88a03caf1ac5f3f15769b5e?_a=AQAEufR","isAccessibleForFree":true,"articleSection":"The Art of Simplicity","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"The Art of Simplicity","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/52b68c70636d44f0901ae7cd107c9438","url":"https://daily.dev/sources/bartwullems"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/masstransit-disable-fault-publishing-rbng8zlfo","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"architecture,rabbitmq","timeRequired":"PT2M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"The Art of Simplicity","item":"https://daily.dev/sources/bartwullems"},{"@type":"ListItem","position":3,"name":"MassTransit–Disable fault publishing"}]}
```

