java.io.IOException: Server returned HTTP response code: 403 for URL: https://10.0.0.1:443/api/v1/namespaces/e2e-tests-examples-6q9lw/endpoints/cassandra
Searched on Google with the first line of a JAVA stack trace?
We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.
Recommended solutions based on your search
Samebug tips
- Expert tip
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.
401 means "Unauthorized", so there must be something with your credentials. You need to pass the authentication to let the server know its a valid user. Check whether the authentication details are provided.
Solutions on the web
via GitHub by k8s-merge-robot
, 1 year agovia GitHub by k8s-merge-robot
, 1 year agovia GitHub by k8s-merge-robot
, 1 year agovia GitHub by k8s-merge-robot
, 1 year agovia GitHub by k8s-merge-robot
, 1 year agovia GitHub by k8s-merge-robot
, 1 year agojava.io.IOException: Server returned HTTP response code: 403 for URL: https://10.0.0.1:443/api/v1/namespaces/e2e-tests-examples-6q9lw/endpoints/cassandra
at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1876)
at sun.net.www.protocol.http.HttpURLConnection.access$200(HttpURLConnection.java:91)
at sun.net.www.protocol.http.HttpURLConnection$9.run(HttpURLConnection.java:1466)
at sun.net.www.protocol.http.HttpURLConnection$9.run(HttpURLConnection.java:1464)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessController.doPrivilegedWithCombiner(AccessController.java:782)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1463)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:254)
at io.k8s.cassandra.KubernetesSeedProvider.getSeeds(KubernetesSeedProvider.java:132)
at org.apache.cassandra.config.DatabaseDescriptor.getSeeds(DatabaseDescriptor.java:1475)
at org.apache.cassandra.gms.Gossiper.buildSeedsList(Gossiper.java:1402)
at org.apache.cassandra.gms.Gossiper.doShadowRound(Gossiper.java:1347)
at org.apache.cassandra.service.StorageService.checkForEndpointCollision(StorageService.java:484)
at org.apache.cassandra.service.StorageService.prepareToJoin(StorageService.java:778)
at org.apache.cassandra.service.StorageService.initServer(StorageService.java:648)
at org.apache.cassandra.service.StorageService.initServer(StorageService.java:548)
at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:385)
at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:601)
at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:730)