function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
ShrawanShrawan 

Error with auth:web:login This org appears to have a problem with its OAuth configuration

Running this command: sfdx force:auth:web:login -r <instance-url>
Getting the below error:
ERROR running force:auth:web:login:  This org appears to have a problem with its OAuth configuration. Reason: invalid_grant - invalid authorization code 
username: <Not Specified>, 
clientId: PlatformCLI, 
loginUrl: <Not Specified>, 
privateKey: <Not Specified> 

Try this: 
Verify the OAuth configuration for this org. For JWT:
Ensure the private key is correct and the cert associated with the connected app has not expired.
Ensure the following OAuth scopes are configured [api, refresh_token, offline_access].
Ensure the username is assigned to a profile or perm set associated with the connected app.
Ensure the connected app is configured to pre-authorize admins.
ShrawanShrawan
Getting this error on the browser: http://localhost:1717/OauthRedirect?error=OAUTH_APP_BLOCKED&error_description=this+app+is+blocked+by+admin