# Getting error while hitting Rest service from Ajax call

**URL:** <https://community.bloomreach.com/t/getting-error-while-hitting-rest-service-from-ajax-call/1410>\
**Category:** Experience Manager (PaaS/OnPrem)\
**Created:** [September 16, 2019, 7:41am UTC](https://community.bloomreach.com/t/getting-error-while-hitting-rest-service-from-ajax-call/1410 "2019-09-16T07:41:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gkr](https://avatars.discourse-cdn.com/v4/letter/g/e480ec/32.png) [@gkr](https://community.bloomreach.com/u/gkr)\
**Post date:** [September 16, 2019, 7:41am UTC](https://community.bloomreach.com/t/getting-error-while-hitting-rest-service-from-ajax-call/1410/1 "2019-09-16T07:41:56Z")

</div>

Hello Guys,

I have sent service, am hitting from that with Ajax call which is having form data.

While hitting am getting below error, could you please help us to reslove.

SASL configuration failed: javax.security.auth.login.LoginException: No JAAS configuration section named ‘Client’ was found in specified JAAS configuration file: ‘jar:file:/Users/testuser/Project/Data\_Set/cmstests/target/tomcat8x/webapps/site/WEB-INF/lib/hst-security-5.6.5.jar!/org/hippoecm/hst/security/impl/login.conf’. **Will continue connection to Zookeeper server without SASL authentication, if Zookeeper server allows it.**

**WARN http-nio-8080-exec-3 [WebApplicationExceptionMapper.toResponse:73] javax.ws.rs.ClientErrorException: HTTP 415 Unsupported Media Type**

thanks & regards  
Ganesh

---

<div class="post-metadata">

**Author:** ![ponnuru765](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.bloomreach.com/ponnuru765/32/421_2.png) [@ponnuru765](https://community.bloomreach.com/u/ponnuru765)\
**Post date:** [September 17, 2019, 10:40pm UTC](https://community.bloomreach.com/t/getting-error-while-hitting-rest-service-from-ajax-call/1410/2 "2019-09-17T22:40:44Z")

</div>

it was due to authentication either you can create custom REST call and give all required auth tokens to pass.
