com.sdl.odata.client.api.exception.ODataClientRuntimeException

Unable to make POST request to OData service for "http://localhost:8082/discovery.svc" URL and service query "/ContentServiceCapabilities"

Solutions on the web2

  • Unable to make POST request to OData service for "http://localhost:8082/discovery.svc" URL and service query "/ContentServiceCapabilities"
  • Could not create OData Context client
  • Stack trace

    • com.sdl.odata.client.api.exception.ODataClientRuntimeException: Unable to make POST request to OData service for "http://localhost:8082/discovery.svc" URL and service query "/ContentServiceCapabilities" at com.sdl.odata.client.DefaultODataClient.formFailedRequestException(DefaultODataClient.java:234) at com.sdl.odata.client.DefaultODataClient.updateEntity(DefaultODataClient.java:194) at com.sdl.web.discovery.registration.SecuredODataClient.updateEntity(SecuredODataClient.java:72) at com.sdl.web.discovery.registration.command.UpdateCommand.updateCapability(UpdateCommand.java:96) at com.sdl.web.discovery.registration.command.UpdateCommand.performCommand(UpdateCommand.java:48) at com.sdl.web.discovery.registration.RegistrationTool.performCommand(RegistrationTool.java:60) at com.sdl.web.discovery.registration.Main.main(Main.java:36) Caused by: com.sdl.odata.client.api.exception.ODataClientException: Path 'http://localhost:8082/discovery.svc/ContentServiceCapabilities('DefaultContentService')' is not allowed at com.sdl.odata.client.caller.BasicEndpointCaller.sendRequest(BasicEndpointCaller.java:142) at com.sdl.odata.client.caller.BasicEndpointCaller.doPutEntity(BasicEndpointCaller.java:176) at com.sdl.odata.client.DefaultODataClient.updateEntity(DefaultODataClient.java:191) ... 5 more Caused by: java.io.IOException: Server returned HTTP response code: 403 for URL: http://localhost:8082/discovery.svc/ContentServiceCapabilities('DefaultContentService') at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection$10.run(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection$10.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at sun.net.www.protocol.http.HttpURLConnection.getChainedException(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source) at com.sdl.odata.client.caller.BasicEndpointCaller.sendRequest(BasicEndpointCaller.java:123) ... 7 more Caused by: java.io.IOException: Server returned HTTP response code: 403 for URL: http://localhost:8082/discovery.svc/ContentServiceCapabilities('DefaultContentSerice') at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source) at java.net.HttpURLConnection.getResponseCode(Unknown Source) at com.sdl.odata.client.caller.BasicEndpointCaller.sendRequest(BasicEndpointCaller.java:121) ... 7 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 10 months ago
    Unknown user
    Once, 11 months ago
    Unknown user
    Once, 11 months ago
    Unknown user
    Once, 1 year ago
    83 more bugmates