question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

OauthAutentication doesn't work python-client

See original GitHub issue

Describe the bug Python Oauth2 doesn’t work over streamnative cloud, always return 404, but pulsar-client works

To Reproduce Steps to reproduce the behavior:

  1. pipenv install pulsar-client (current 2.9.1)
  2. Set your file and configure all as streamnative tell you in their website
  params = '''
  {
      "issuer_url": "https://auth.streamnative.cloud/",
      "private_key": "test-test.json",
      "audience": "urn:sn:pulsar:test:test"
  }

‘’’

pulsar_producer = pulsar.Client( PULSAR_URL, # pulsar+ssl://test.test.snio.cloud:6651 authentication=AuthenticationOauth2(params) )

Expected behavior Pulsar-client connected

Screenshots

ERROR [139930200591360] AuthOauth2:223 | Response failed for getting the well-known configuration https://auth.streamnative.cloud/. response Code 404

Desktop (please complete the following information):

  • OS: [e.g. iOS]

Additional context The path is correct, I tried with the wrong path and I didn’t get errors about the wrong path. I tried with pulsar-client and works the connection with that file and that configuration. I am using pipenv with python 3.9.7

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
EronWrightcommented, Mar 25, 2022

I feel this issue should remain open until the Python client has been fixed to trim any trailing slash. Seems @Tlaloc-Es closed it because they’re willing to edit their configuration.

0reactions
BewareMyPowercommented, Jun 9, 2022

It’s fixed by #15928.

Read more comments on GitHub >

github_iconTop Results From Across the Web

User authentication via python api not working - ShotGrid
I'm trying to make an internal web app that will let a user log in to our custom site using their ShotGrid credentials....
Read more >
[PYTHON] Generated Client doesn't send basic access ...
In wireshark I can see that only an ":" has been sent as authentication and the username and password are missing. Swagger-codegen version....
Read more >
Basic authentication not working in node-rest-client node
Basic authentication not working in node-rest-client node ... I'm using node-rest-client library to call my rest API running a python flask app in ......
Read more >
Python API authentication issues | Geotab Community Question
Hi,. Using the below code here: import mygeotab. client = mygeotab.API(username='stringabc', password='stringxyz', database='aaa').
Read more >
Consumer Keys and Authentication Tokens doesn't work
Hi everyone, After some tutorials, I can't use my python script. This is my code auth = tweepy.OAuthHandler(“XXX”, “XXX”) auth.set_access_token(“XXX”, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found