BewareMyPower commented on PR #16064:
URL: https://github.com/apache/pulsar/pull/16064#issuecomment-1299941386

   I have confirmed it's caused by this PR and will revert it from branch-2.7 
to 2.11. Though we should encourage users to use new separated 
`pulsar-client-cpp` and `pulsar-client-python` repos, I will confirm again for 
these new repos.
   
   ### Reproduce
   
   Checkout branch-2.9, run the following command.
   
   ```bash
   $ pulsar-client-cpp/docker/build-wheels.sh 3.8 cp38-cp38 manylinux2014 x86_64
   ```
   
   Then `pulsar_client-2.9.3-cp38-cp38-linux_x86_64.whl` will be generated 
under `pulsar-client-cpp/python/dist`. Then install the wheel in a 
`ubuntu:20.04` container. 
   
   ```bash
   docker run -v $PWD:/pulsar -it ubuntu:20.04 /bin/bash
   ```
   
   ```bash
   apt update -y
   apt install -y python3 python3-pip
   pip3 install 
/pulsar/pulsar-client-cpp/python/dist/pulsar_client-2.9.3-cp38-cp38-linux_x86_64.whl
   ```
   
   Then run the following script:
   
   ```python
   #!/usr/bin/env python3
   from pulsar import AuthenticationOauth2
   
   auth = AuthenticationOauth2(auth_params_string='''{
       "type": "client_credentials",
       "issuer_url": "https://dev-kt-aa9ne.us.auth0.com";,
       "client_id": "xxx",
       "client_secret": "xxx"
   }''')
   ```
   
   Output:
   
   ```
   2022-11-02 09:28:19.003 ERROR [140425586124608] AuthOauth2:222 | Response 
failed for getting the well-known configuration 
https://dev-kt-aa9ne.us.auth0.com. Error Code 77: error setting certificate 
verify locations:
     CAfile: /etc/pki/tls/certs/ca-bundle.crt
     CApath: none
   ```
   
   After I reverted this PR, it works.
   
   
![image](https://user-images.githubusercontent.com/18204803/199455287-ea78dd2c-0964-43e0-bc3f-d1d73a7225fb.png)
   


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to