This is not a popular topic in the AEM community. I have not seen too many developers asking about this API.
Popular front end languages for AEM are HTL, JSP, JQuery, Angular.
If you are following the docs and getting an error, I recommend opening a support ticket.