# Error with web template and FLAt example API in EHRbase **Category:** [Platform](https://discourse.openehr.org/c/platform-implem/7) **Created:** 2023-03-24 05:37 UTC **Views:** 355 **Replies:** 2 **URL:** https://discourse.openehr.org/t/error-with-web-template-and-flat-example-api-in-ehrbase/3741 --- ## Post #1 by @Dileep_V_S Hi, I am running the latest EHRbase using standard docker-compose file. Getting 500 - internal server error for the following APIs ``` /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 --- ## Post #2 by @birger.haarbrandt Hi Dileep, to get a clearer picture: have you tried with different templates? --- ## Post #3 by @Dileep_V_S @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 --- **Canonical:** https://discourse.openehr.org/t/error-with-web-template-and-flat-example-api-in-ehrbase/3741 **Original content:** https://discourse.openehr.org/t/error-with-web-template-and-flat-example-api-in-ehrbase/3741