java.io.IOException: Server returned HTTP response code: 403 for URL: https://kubernetes.default.svc.cluster.local/api/v1/namespaces/e2e-tests-examples-823hm/endpoints/hazelcast


Samebug tips

Check if you didn't set RequestProperty Content-Type to the wrong type or if you're trying to send the wrong file to the server.


6 months ago
Expert tip

Solutions on the web

Solution icon of github
Server returned HTTP response code: 403 for URL: https://kubernetes.default.svc.cluster.local/api/v1/namespaces/e2e-tests-examples-823hm/endpoints/hazelcast

Solution icon of github
Server returned HTTP response code: 403 for URL: https://kubernetes.default.svc.cluster.local/api/v1/namespaces/e2e-tests-examples-k8rdx/endpoints/hazelcast

Solution icon of github
Server returned HTTP response code: 403 for URL: https://kubernetes.default.svc.cluster.local/api/v1/namespaces/e2e-tests-examples-lh4m5/endpoints/hazelcast

Solution icon of github
Server returned HTTP response code: 403 for URL: https://kubernetes.default.svc.cluster.local/api/v1/namespaces/e2e-tests-examples-jw7pk/endpoints/hazelcast

Solution icon of github
Server returned HTTP response code: 403 for URL: https://kubernetes.default.svc.cluster.local/api/v1/namespaces/e2e-tests-examples-w5xnn/endpoints/hazelcast

Solution icon of github
Server returned HTTP response code: 403 for URL: https://kubernetes.default.svc.cluster.local/api/v1/namespaces/e2e-tests-examples-d8736/endpoints/hazelcast

Solution icon of github
Server returned HTTP response code: 403 for URL: https://kubernetes.default.svc.cluster.local/api/v1/namespaces/e2e-tests-examples-347ck/endpoints/hazelcast

Solution icon of github
Server returned HTTP response code: 403 for URL: https://kubernetes.default.svc.cluster.local/api/v1/namespaces/e2e-tests-examples-cndsq/endpoints/hazelcast

Solution icon of github
Server returned HTTP response code: 403 for URL: https://kubernetes.default.svc.cluster.local/api/v1/namespaces/e2e-tests-examples-6vhgc/endpoints/hazelcast

Solution icon of github
Server returned HTTP response code: 403 for URL: https://kubernetes.default.svc.cluster.local/api/v1/namespaces/e2e-tests-examples-gpb1p/endpoints/hazelcast

Stack trace

java.io.IOException: Server returned HTTP response code: 403 for URL: https://kubernetes.default.svc.cluster.local/api/v1amespaces/e2e-tests-examples-823hm/endpoints/hazelcast
	at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1840)[na:1.8.0_92-internal]
	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1441)[na:1.8.0_92-internal]
	at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:254)[na:1.8.0_92-internal]
	at com.github.pires.hazelcast.HazelcastDiscoveryController.run(HazelcastDiscoveryController.java:118)[classes!/:na]
	at org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:798)[spring-boot-1.4.0.RELEASE.jar!/:1.4.0.RELEASE]
	at org.springframework.boot.SpringApplication.callRunners(SpringApplication.java:782)[spring-boot-1.4.0.RELEASE.jar!/:1.4.0.RELEASE]
	at org.springframework.boot.SpringApplication.afterRefresh(SpringApplication.java:769)[spring-boot-1.4.0.RELEASE.jar!/:1.4.0.RELEASE]
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:314)[spring-boot-1.4.0.RELEASE.jar!/:1.4.0.RELEASE]
	at org.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:134)[spring-boot-1.4.0.RELEASE.jar!/:1.4.0.RELEASE]
	at com.github.pires.hazelcast.Application.main(Application.java:28)[classes!/:na]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.8.0_92-internal]
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[na:1.8.0_92-internal]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.8.0_92-internal]
	at java.lang.reflect.Method.invoke(Method.java:498)[na:1.8.0_92-internal]
	at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48)[bootstrapper.jar:na]
	at org.springframework.boot.loader.Launcher.launch(Launcher.java:87)[bootstrapper.jar:na]
	at org.springframework.boot.loader.Launcher.launch(Launcher.java:50)[bootstrapper.jar:na]
	at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:58)[bootstrapper.jar:na]

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

Samebug visitor profile picture
Unknown user
Once, 1 year ago
35 times, 1 year ago
Once, 1 year ago
3 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
94 more bugmates