Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

INVALID_LOGIN when logging into Sandbox #671

Open
manfred1201 opened this issue Jul 18, 2023 · 2 comments
Open

INVALID_LOGIN when logging into Sandbox #671

manfred1201 opened this issue Jul 18, 2023 · 2 comments

Comments

@manfred1201
Copy link

I tried to login into my sandbox using the command below:
sf = Salesforce(username='xx@xx.com.sandbox_name', password='xx', security_token='xx', domain='test')
the "sandbox_name" is the name of my sandbox. I already reset the token in my sandbox account and the log in information should all be correct.

Here is the error I got:

SalesforceAuthenticationFailed: INVALID_LOGIN: Invalid username, password, security token; or user locked out.

And also, I cannot see this login history in my account setting.

@manfred1201
Copy link
Author

And everything works fine when I log into the production account.

@john77eipe
Copy link

This is how I use it
sf_client = Salesforce(instance_url='https://<sub-domain>.sandbox.my.salesforce.com', username='<username>' , password='<password>', security_token='<security token>', domain='<sub-domain>.sandbox.my')

I'm using the sandbox.my domain. You need to add the appropritate sub-domain.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants