marcoaureliox opened a new issue #323:
URL: https://github.com/apache/pulsar-manager/issues/323


   Hello,
   
   I have a pulsar cluster installed, and I'm trying to launch the 
pulsar-manager through the docker with the simple parameter JWT_TOKEN, but when 
I have to create an environment on the portal it gives the error:
   
   "HTTP/1.1 401 Unauthorized[\r][\n]" and "{"reason":"This operation requires 
super-user access"}"
   
   The token is correct, but not passed to the http call.
   
   Follow the full error log:
   
   (...)
   2020-07-17 09:50:22.567 DEBUG 40 --- [pool-2-thread-1] 
org.apache.http.headers                  : http-outgoing-58 >> GET 
/admin/v2/clusters/PULSAR-CLUSTER-DEV/failureDomains HTTP/1.1
   2020-07-17 09:50:22.567 DEBUG 40 --- [pool-2-thread-1] 
org.apache.http.headers                  : http-outgoing-58 >> Content-Type: 
application/json
   2020-07-17 09:50:22.567 DEBUG 40 --- [pool-2-thread-1] 
org.apache.http.headers                  : http-outgoing-58 >> Host: 
RHSDTBBW203.corporativo.pt:8080
   2020-07-17 09:50:22.567 DEBUG 40 --- [pool-2-thread-1] 
org.apache.http.headers                  : http-outgoing-58 >> Connection: 
Keep-Alive
   2020-07-17 09:50:22.567 DEBUG 40 --- [pool-2-thread-1] 
org.apache.http.headers                  : http-outgoing-58 >> User-Agent: 
Apache-HttpClient/4.5.5 (Java/1.8.0_212)
   2020-07-17 09:50:22.567 DEBUG 40 --- [pool-2-thread-1] 
org.apache.http.headers                  : http-outgoing-58 >> Accept-Encoding: 
gzip,deflate
   2020-07-17 09:50:22.567 DEBUG 40 --- [pool-2-thread-1] org.apache.http.wire  
                   : http-outgoing-58 >> "GET 
/admin/v2/clusters/PULSAR-CLUSTER-DEV/failureDomains HTTP/1.1[\r][\n]"
   2020-07-17 09:50:22.567 DEBUG 40 --- [pool-2-thread-1] org.apache.http.wire  
                   : http-outgoing-58 >> "Content-Type: 
application/json[\r][\n]"
   2020-07-17 09:50:22.567 DEBUG 40 --- [pool-2-thread-1] org.apache.http.wire  
                   : http-outgoing-58 >> "Host: 
RHSDTBBW203.corporativo.pt:8080[\r][\n]"
   2020-07-17 09:50:22.567 DEBUG 40 --- [pool-2-thread-1] org.apache.http.wire  
                   : http-outgoing-58 >> "Connection: Keep-Alive[\r][\n]"
   2020-07-17 09:50:22.567 DEBUG 40 --- [pool-2-thread-1] org.apache.http.wire  
                   : http-outgoing-58 >> "User-Agent: Apache-HttpClient/4.5.5 
(Java/1.8.0_212)[\r][\n]"
   2020-07-17 09:50:22.567 DEBUG 40 --- [pool-2-thread-1] org.apache.http.wire  
                   : http-outgoing-58 >> "Accept-Encoding: gzip,deflate[\r][\n]"
   2020-07-17 09:50:22.567 DEBUG 40 --- [pool-2-thread-1] org.apache.http.wire  
                   : http-outgoing-58 >> "[\r][\n]"
   2020-07-17 09:50:22.567 DEBUG 40 --- [pool-2-thread-1] org.apache.http.wire  
                   : http-outgoing-58 << "HTTP/1.1 401 Unauthorized[\r][\n]"
   2020-07-17 09:50:22.567 DEBUG 40 --- [pool-2-thread-1] org.apache.http.wire  
                   : http-outgoing-58 << "Date: Fri, 17 Jul 2020 09:50:22 
GMT[\r][\n]"
   2020-07-17 09:50:22.567 DEBUG 40 --- [pool-2-thread-1] org.apache.http.wire  
                   : http-outgoing-58 << "Content-Type: 
application/json[\r][\n]"
   2020-07-17 09:50:22.567 DEBUG 40 --- [pool-2-thread-1] org.apache.http.wire  
                   : http-outgoing-58 << "Content-Length: 54[\r][\n]"
   2020-07-17 09:50:22.567 DEBUG 40 --- [pool-2-thread-1] org.apache.http.wire  
                   : http-outgoing-58 << "Server: 
Jetty(9.4.20.v20190813)[\r][\n]"
   2020-07-17 09:50:22.567 DEBUG 40 --- [pool-2-thread-1] org.apache.http.wire  
                   : http-outgoing-58 << "[\r][\n]"
   2020-07-17 09:50:22.567 DEBUG 40 --- [pool-2-thread-1] org.apache.http.wire  
                   : http-outgoing-58 << "{"reason":"This operation requires 
super-user access"}"
   2020-07-17 09:50:22.567 DEBUG 40 --- [pool-2-thread-1] 
org.apache.http.headers                  : http-outgoing-58 << HTTP/1.1 401 
Unauthorized
   2020-07-17 09:50:22.567 DEBUG 40 --- [pool-2-thread-1] 
org.apache.http.headers                  : http-outgoing-58 << Date: Fri, 17 
Jul 2020 09:50:22 GMT
   2020-07-17 09:50:22.567 DEBUG 40 --- [pool-2-thread-1] 
org.apache.http.headers                  : http-outgoing-58 << Content-Type: 
application/json
   2020-07-17 09:50:22.567 DEBUG 40 --- [pool-2-thread-1] 
org.apache.http.headers                  : http-outgoing-58 << Content-Length: 
54
   2020-07-17 09:50:22.567 DEBUG 40 --- [pool-2-thread-1] 
org.apache.http.headers                  : http-outgoing-58 << Server: 
Jetty(9.4.20.v20190813)
   2020-07-17 09:50:22.568 DEBUG 40 --- [pool-2-thread-1] 
o.a.http.impl.execchain.MainClientExec   : Connection can be kept alive 
indefinitely
   2020-07-17 09:50:22.568 DEBUG 40 --- [pool-2-thread-1] 
o.a.http.impl.auth.HttpAuthenticator     : Authentication required
   2020-07-17 09:50:22.568 DEBUG 40 --- [pool-2-thread-1] 
o.a.http.impl.auth.HttpAuthenticator     : RHSDTBBW203.corporativo.pt:8080 
requested authentication
   2020-07-17 09:50:22.568 DEBUG 40 --- [pool-2-thread-1] 
o.a.http.impl.auth.HttpAuthenticator     : Response contains no authentication 
challenges
   2020-07-17 09:50:22.568 DEBUG 40 --- [pool-2-thread-1] 
o.a.http.impl.execchain.MainClientExec   : Cancelling request execution
   2020-07-17 09:50:22.568 DEBUG 40 --- [pool-2-thread-1] 
h.i.c.DefaultManagedHttpClientConnection : http-outgoing-58: Shutdown connection
   2020-07-17 09:50:22.568 DEBUG 40 --- [pool-2-thread-1] 
o.a.http.impl.execchain.MainClientExec   : Connection discarded
   (...)


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to