# Error Message in the using CMS

**URL:** <https://forum.builder.io/t/error-message-in-the-using-cms/4482>\
**Category:** CMS\
**Created:** [November 17, 2023, 5:43pm UTC](https://forum.builder.io/t/error-message-in-the-using-cms/4482 "2023-11-17T17:43:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![xbrandonpowell](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.builder.io/xbrandonpowell/32/3146_2.png) [@xbrandonpowell](https://forum.builder.io/u/xbrandonpowell)\
**Post date:** [November 17, 2023, 5:43pm UTC](https://forum.builder.io/t/error-message-in-the-using-cms/4482/1 "2023-11-17T17:43:14Z")

</div>

When testing the logo in the file upload, I did not observe it being uploaded. Instead, I encounter an error message that states, "Oh no!

We encountered an error." Unfortunately, there is no way to access console.log to fix this issue or understand what is happening.

![Screenshot 2023-11-17 at 11.43.00 AM (2)](https://us1.discourse-cdn.com/flex020/uploads/builder/original/2X/e/e0570a296312bfdcd4d1370a9e8ed4b3e3a09d44.png)

**Here is the Share Link**

> **[Builder + Next.js Demo Page](https://builder.io/fiddle/8355ff2338f44db19ec8b650b77dbcb9)**
>
> Experience Builder.io's Design-to-Responsive Code Transformation!

---

<div class="post-metadata">

**Author:** ![manish-sharma](https://avatars.discourse-cdn.com/v4/letter/m/8797f3/32.png) [@manish-sharma](https://forum.builder.io/u/manish-sharma)\
**Post date:** [November 21, 2023, 3:26am UTC](https://forum.builder.io/t/error-message-in-the-using-cms/4482/2 "2023-11-21T03:26:52Z")

</div>

Hello @xbrandonpowell,

Could you kindly share the code for the Navigation custom component? This information will assist us in better understanding and addressing any issues.

---

<div class="post-metadata">

**Author:** ![xbrandonpowell](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.builder.io/xbrandonpowell/32/3146_2.png) [@xbrandonpowell](https://forum.builder.io/u/xbrandonpowell)\
**Post date:** [November 21, 2023, 7:55pm UTC](https://forum.builder.io/t/error-message-in-the-using-cms/4482/3 "2023-11-21T19:55:51Z")

</div>

```auto
{imageData && (
<a href=""><Img
      src={imageData.src}
      alt={imageData.allowedFileTypes}
      input={imageData.type} // Assuming your CMS provides an 'input' property
/></a>
)}

Builder.registerComponent(Nav, {
  name: "Navigation",
  inputs: [
    {
      name: "UploadLogo",
      type: "file",
      defaultValue: true,
    },
    {
      name: "NavListing",
      type: "list",
      defaultValue: true,
    },
    {
      name: "UrlLink",
      type: "url",
      defaultValue: "https://google.com",
    },
  ],
});

```

---

<div class="post-metadata">

**Author:** ![manish-sharma](https://avatars.discourse-cdn.com/v4/letter/m/8797f3/32.png) [@manish-sharma](https://forum.builder.io/u/manish-sharma)\
**Post date:** [November 22, 2023, 1:47pm UTC](https://forum.builder.io/t/error-message-in-the-using-cms/4482/4 "2023-11-22T13:47:22Z")

</div>

Hello @xbrandonpowell,

It appears that the issue lies in the default value of the boolean type used for the file and list types, and it seems to be incorrect.

To address this, you can update the Navigation component with the following code:

```auto
Builder.registerComponent(Nav, {
  name: "Navigation",
  inputs: [
    {
      name: "UploadLogo",
      type: "file",
      defaultValue:
        "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F08ee6173b5b14ac5b5d711461c681e8e",
    },
    {
      name: "NavListing",
      type: "list",
      defaultValue: [{ navItems: "hello" }],
      subFields: [
        {
                name: 'navItems',
                type: 'string',
                defaultValue: "Home",
              }
            ],
    },
    {
      name: "UrlLink",
      type: "url",
      defaultValue: "https://google.com",
    },
  ],
});

```

> **[Input types for custom components - Builder.io](https://www.builder.io/c/docs/custom-components-input-types)**
>
> Drag and drop with your components, right within your existing site or app. Build and optimize digital experiences for any tech stack, visually.

---

<div class="post-metadata">

**Author:** ![xbrandonpowell](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.builder.io/xbrandonpowell/32/3146_2.png) [@xbrandonpowell](https://forum.builder.io/u/xbrandonpowell)\
**Post date:** [November 22, 2023, 3:56pm UTC](https://forum.builder.io/t/error-message-in-the-using-cms/4482/5 "2023-11-22T15:56:11Z")

</div>

I have to check to see way this CMS Is not activation my API Key because the progress bar not moving when uplaoding my API Key to the website so I can check to see if the component has been added successfully to the backend.
