# How to check that content of my section failed?

**URL:** <https://forum.builder.io/t/how-to-check-that-content-of-my-section-failed/6057>\
**Category:** CMS\
**Tags:** react\
**Created:** [July 30, 2024, 8:43am UTC](https://forum.builder.io/t/how-to-check-that-content-of-my-section-failed/6057 "2024-07-30T08:43:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![katia.lishnevsky](https://avatars.discourse-cdn.com/v4/letter/k/c6cbf5/32.png) [@katia.lishnevsky](https://forum.builder.io/u/katia.lishnevsky)\
**Post date:** [July 30, 2024, 8:43am UTC](https://forum.builder.io/t/how-to-check-that-content-of-my-section-failed/6057/1 "2024-07-30T08:43:22Z")

</div>

Hi,  
What is the correct way to check that content of my section is failed?  
If I’m checking it like this, is it correct? -

```auto
const fetchBuilderContent = async pathname => {
            try {
                builder.init(publicApiKey);
                const content = await builder.get(BUILDER_IO_PRIVACY_EXPLAINED_SECTION_NAME, {url: pathname}).promise();
                if (content) {
                    setBuilderContentJson(content);
                } else {
                    reportStatistic(BUILDER_IO_SECTION_FAILED, BUILDER_IO_PRIVACY_EXPLAINED_SECTION_NAME);
                }
            } catch (error) {
                reportStatistic(BUILDER_IO_SECTION_FAILED, BUILDER_IO_PRIVACY_EXPLAINED_SECTION_NAME);
            }

```

---

<div class="post-metadata">

**Author:** ![Fernando](https://avatars.discourse-cdn.com/v4/letter/f/779978/32.png) [@Fernando](https://forum.builder.io/u/Fernando)\
**Post date:** [July 30, 2024, 10:06am UTC](https://forum.builder.io/t/how-to-check-that-content-of-my-section-failed/6057/2 "2024-07-30T10:06:23Z")

</div>

Hi katia​,

Thank you for contacting [Builder.io](http://builder.io/) Support! I look forward to helping you with your request.

I will check more details on this, and we will update you as soon as we have news.

Thanks,
