Login Issue via api

Error during login.
The code is:
api_key = “yzzz”
secret_key = “xyz1”
rurl = urllib.parse.quote(‘https://127.0.0.1:5000’,safe = “”)

uri = f’https://api.upstox.com/v2/login/authorization/dialog?response_type=code&client_id={api_key}&redirect_uri={rurl}

Following code appears when I paste the resolved uri in browser.
{“status”:“error”,“errors”:[{“errorCode”:“UDAPI100068”,“message”:“Check your ‘client_id’ and ‘redirect_uri’; one or both are incorrect.”,“propertyPath”:null,“invalidValue”:null,“error_code”:“UDAPI100068”,“property_path”:null,“invalid_value”:null}]}

The message explicitly states a discrepancy between the values of client_id or redirect_uri. Ensure these values are exactly the same as you specified when creating the app.

redirect uri is not required while creating the app. Client id is the same.

Providing a redirect URL is mandatory when setting up the app. Refer to Step 6: Enter the relevant information and click on continue on the following page: How to Create an API App.