# Showing error in APIs generated by hippo

**URL:** <https://community.bloomreach.com/t/showing-error-in-apis-generated-by-hippo/539>\
**Category:** Experience Manager (PaaS/OnPrem)\
**Created:** [October 30, 2018, 5:29am UTC](https://community.bloomreach.com/t/showing-error-in-apis-generated-by-hippo/539 "2018-10-30T05:29:30Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mahesh919616](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.bloomreach.com/mahesh919616/32/371_2.png) [@Mahesh919616](https://community.bloomreach.com/u/Mahesh919616)\
**Post date:** [October 30, 2018, 5:29am UTC](https://community.bloomreach.com/t/showing-error-in-apis-generated-by-hippo/539/1 "2018-10-30T05:29:30Z")

</div>

hi friends getting following error when i click on site/api/documents what would be the problem can you figure it out??

 ![API_Error](https://canada1.discourse-cdn.com/flex027/uploads/bloomreach1/original/1X/98231e6cf128d029b8889eadd290a3383d48f5ac.jpeg)

---

<div class="post-metadata">

**Author:** ![mdg](https://avatars.discourse-cdn.com/v4/letter/m/a9a28c/32.png) [@mdg](https://community.bloomreach.com/u/mdg)\
**Post date:** [October 30, 2018, 2:25pm UTC](https://community.bloomreach.com/t/showing-error-in-apis-generated-by-hippo/539/3 "2018-10-30T14:25:01Z")

</div>

Mahesh, it was early when I saw your message, and then I started getting tickets that talked about the same api end point, and I jumped to a conclusion. The type: “invalid” occurs when nothing is selected in the document. If you associate a document to that specific link, it will resolve as normal.

example after a document is picked.:  
“link”: {  
“id”: “a2d3ff5b-60a4-4e1d-8e16-14ccc4164100”,  
“type”: “local”,  
“url”: “[http://localhost:8080/site/preview/api/documents/a2d3ff5b-60a4-4e1d-8e16-14ccc4164100](http://localhost:8080/site/preview/api/documents/a2d3ff5b-60a4-4e1d-8e16-14ccc4164100)”  
},  
“type”: “hippo:mirror”

---

<div class="post-metadata">

**Author:** ![Mahesh919616](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.bloomreach.com/mahesh919616/32/371_2.png) [@Mahesh919616](https://community.bloomreach.com/u/Mahesh919616)\
**Post date:** [October 30, 2018, 2:43pm UTC](https://community.bloomreach.com/t/showing-error-in-apis-generated-by-hippo/539/4 "2018-10-30T14:43:26Z")

</div>

Hello mdg thank you for your reply, I attached the version information look into it and respond me soon

![](https://canada1.discourse-cdn.com/flex027/uploads/bloomreach1/original/1X/7d6ca95f208c2a09c622bd916cb9b29e7e5ba3b3.jpeg)

---

<div class="post-metadata">

**Author:** ![Mahesh919616](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.bloomreach.com/mahesh919616/32/371_2.png) [@Mahesh919616](https://community.bloomreach.com/u/Mahesh919616)\
**Post date:** [October 30, 2018, 2:52pm UTC](https://community.bloomreach.com/t/showing-error-in-apis-generated-by-hippo/539/5 "2018-10-30T14:52:50Z")

</div>

hi mdg,

I selected a specific document for each and every link, it was showing APIs fine and working fine earlier but from today its showing invalid in type as shown in image. The data associated with these APIs are disabled from site. I am not getting exact reason why its showing invalid and how to resolve it. If i need to do any console settings please tell me soon it will be helpful

thank you

---

<div class="post-metadata">

**Author:** ![mdg](https://avatars.discourse-cdn.com/v4/letter/m/a9a28c/32.png) [@mdg](https://community.bloomreach.com/u/mdg)\
**Post date:** [October 30, 2018, 6:17pm UTC](https://community.bloomreach.com/t/showing-error-in-apis-generated-by-hippo/539/6 "2018-10-30T18:17:26Z")

</div>

Mahesh-- I did not do anything special to get the data to appear in /site/api/documents/ I am using the OOTB document selector.

Only thing different on your JSON data is the types under the link attr, example “devepragaticms:newsdocument” vs. hippo:mirror, Are you using the OOTB selector, if so can you share the document.yaml for the above attribute (not the newsdocument but whatever generated your JSON)?

---

<div class="post-metadata">

**Author:** ![Mahesh919616](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.bloomreach.com/mahesh919616/32/371_2.png) [@Mahesh919616](https://community.bloomreach.com/u/Mahesh919616)\
**Post date:** [October 31, 2018, 5:53am UTC](https://community.bloomreach.com/t/showing-error-in-apis-generated-by-hippo/539/7 "2018-10-31T05:53:12Z")

</div>

what is OOTB where we can use it?? and where i can see hippo:mirror settings??

---

<div class="post-metadata">

**Author:** ![mdg](https://avatars.discourse-cdn.com/v4/letter/m/a9a28c/32.png) [@mdg](https://community.bloomreach.com/u/mdg)\
**Post date:** [October 31, 2018, 12:36pm UTC](https://community.bloomreach.com/t/showing-error-in-apis-generated-by-hippo/539/8 "2018-10-31T12:36:07Z")

</div>

OOTB means “Out of the Box”, or the default selector.

hippo:mirror should be in the YAML file of your code base.

---

<div class="post-metadata">

**Author:** ![Mahesh919616](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.bloomreach.com/mahesh919616/32/371_2.png) [@Mahesh919616](https://community.bloomreach.com/u/Mahesh919616)\
**Post date:** [October 31, 2018, 1:00pm UTC](https://community.bloomreach.com/t/showing-error-in-apis-generated-by-hippo/539/9 "2018-10-31T13:00:39Z")

</div>

ya i am using OOTB document selector

I will see the YAML coding

thank you
