# Error with web template and FLAt example API in EHRbase

**URL:** <https://discourse.openehr.org/t/error-with-web-template-and-flat-example-api-in-ehrbase/3741>\
**Category:** Platform\
**Tags:** ehrbase\
**Created:** [24 March 2023 05:37 UTC](https://discourse.openehr.org/t/error-with-web-template-and-flat-example-api-in-ehrbase/3741 "2023-03-24T05:37:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dileep\_V\_S](https://discourse.openehr.org/user_avatar/discourse.openehr.org/dileep_v_s/32/664_2.png) [@Dileep\_V\_S](https://discourse.openehr.org/u/Dileep_V_S)\
**Post date:** [24 March 2023 05:37 UTC](https://discourse.openehr.org/t/error-with-web-template-and-flat-example-api-in-ehrbase/3741/1 "2023-03-24T05:37:38Z")

</div>

Hi,  
I am running the latest EHRbase using standard docker-compose file. Getting 500 - internal server error for the following APIs

```auto

/ehrbase/rest/ecis/v1/template/{{template_id}}/example?format=FLAT&exampleFilter=OUTPUT
/ehrbase/rest/ecis/v1/template/{{template_id}}

```

Can someone tell me where I am making a mistake? Are the paths correct?

regards

---

<div class="post-metadata">

**Author:** ![birger.haarbrandt](https://discourse.openehr.org/user_avatar/discourse.openehr.org/birger.haarbrandt/32/24_2.png) [@birger.haarbrandt](https://discourse.openehr.org/u/birger.haarbrandt)\
**Post date:** [24 March 2023 06:29 UTC](https://discourse.openehr.org/t/error-with-web-template-and-flat-example-api-in-ehrbase/3741/2 "2023-03-24T06:29:16Z")

</div>

Hi Dileep,

to get a clearer picture: have you tried with different templates?

---

<div class="post-metadata">

**Author:** ![Dileep\_V\_S](https://discourse.openehr.org/user_avatar/discourse.openehr.org/dileep_v_s/32/664_2.png) [@Dileep\_V\_S](https://discourse.openehr.org/u/Dileep_V_S)\
**Post date:** [24 March 2023 06:46 UTC](https://discourse.openehr.org/t/error-with-web-template-and-flat-example-api-in-ehrbase/3741/3 "2023-03-24T06:46:48Z")

</div>

@birger.haarbrandt My bad. I had tried with only one template and again I had a mistake in the templateId in the above APIs. They are working when I gave the correct templateId.

On a related note, “templateId not found” response would have been more appropriate in this situation

Thanks
