java.io.IOException: Server returned HTTP response code: 401 for URL: https://addr:9090/nifi-api/controller

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

Solutions on the web

via Stack Overflow by Frankie
, 1 year ago
Server returned HTTP response code: 401 for URL: https://addr:9090/nifi-api/controller
via Stack Overflow by user2659694
, 1 year ago
Server returned HTTP response code: 400 for URL: https://localhost:9443/wso2/scim/Users/
via Stack Overflow by We are Borg
, 6 months ago
Server returned HTTP response code: 400 for URL: https://graph.facebook.com/oauth/access_token?client_id=ID&redirect_uri=http://localhost:8080/registerfacebook&client_secret=SECRET&code=SOME_CODE
via Stack Overflow by Mohammed Riyaz
, 1 month ago
Server returned HTTP response code: 401 for URL: https://domain/A/B/72968
via Stack Overflow by MosaicOrange
, 1 year ago
Server returned HTTP response code: 403 for URL: https://[redacted]
java.io.IOException: Server returned HTTP response code: 401 for URL: https://useomlxd00007.nix.us.kworld.kpmg.com:9090/nifi-api/controller
at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1840)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1441)
at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:480)
at org.apache.nifi.remote.util.NiFiRestApiUtil.getController(NiFiRestApiUtil.java:66)
at org.apache.nifi.remote.client.socket.EndpointConnectionPool.refreshRemoteInfo(EndpointConnectionPool.java:887)
at org.apache.nifi.remote.client.socket.EndpointConnectionPool.getPortIdentifier(EndpointConnectionPool.java:874)
at org.apache.nifi.remote.client.socket.EndpointConnectionPool.getOutputPortIdentifier(EndpointConnectionPool.java:858)
at org.apache.nifi.remote.client.socket.SocketClient.getPortIdentifier(SocketClient.java:81)
at org.apache.nifi.remote.client.socket.SocketClient.createTransaction(SocketClient.java:123)
at org.apache.nifi.spark.NiFiReceiver$ReceiveRunnable.run(NiFiReceiver.java:149)
at java.lang.Thread.run(Thread.java:745)

Users with the same issue

Once, 3 weeks ago
Once, 1 month ago
2 times, 4 months ago
Once, 5 months ago
4 times, 5 months ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.