UDAPI100016: Invalid Credentials Error

I am using the following code to authenticate the API.

import webbrowser
from urllib.parse import quote,quote_plus
url = f"https://api.upstox.com/v2/login/authorization/dialog?response_type=code&client_id={apiKey}&redirect_uri={quote_plus(redirectUri)}"
response = requests.request("GET", url)
webbrowser.open(response.url) 

But I am getting the following error:

{
    "status": "error",
    "errors": [
        {
            "errorCode": "UDAPI100016",
            "message": "Invalid Credentials",
            "propertyPath": null,
            "invalidValue": null,
            "error_code": "UDAPI100016",
            "property_path": null,
            "invalid_value": null
        }
    ]
}

Redirect URI: http://127.0.0.1:8989/redirect/

I have verified that all the credentials are properly in place. Please helpā€¦

@Aaron_Dsouza

Assuming the credentials are actually are valid, please check your browserā€™s cache settings. This could be a scenario where your cache is not available for usage.

Please keep us informed on this.

Thanks!

1 Like

I am too getting same error, cleared cache and tried in 3 different laptops still getting the same error, please help fix it

https://api-v2.upstox.com/login/authorization/dialog?response_type=code&client_id=******&redirect_uri=https%3A%2F%2F127.0.0.1.8000%2Fā€™

@Tradar,

Could you please provide your client_id so we can investigate the issue? While it shouldnā€™t be specific to your user account, your assertion that itā€™s producing the same error across various machines is somewhat surprising. Iā€™d like to eliminate that possibility.

Thanks!

5KA53L is the client ID

Any update for me on the above issue

here it is: fb190932-9619-41d1-89d6-995fbd9ee3ff

how much time will it take to fix the issue