You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my CI process, I create a scratch org and immediately after I use this module to authenticate and get an access token using the username, password, session_token and domain. Intermittently, I receive an INVALID_LOGIN message.
This is more of a salesforce-side issue where DNS propagation (or some record propagation) takes time to complete and the scratch org isnt available except via the direct MyDomain URL for a while. Attempting to access it using the default front door https://test.salesforce.com yields INVALID_LOGIN errors.
To resolve this on my end, I am using these couple of lines of edits in login.py on line 220:
if instance_url is not None:
soap_url = f'{instance_url}/services/Soap/u/{sf_version}'
else:
soap_url = f'https://{domain}.salesforce.com/services/Soap/u/{sf_version}'
This allows me to pass the direct URL to the scratch org for a significantly higher success rate. Would you consider incorporating this change into the package?
The text was updated successfully, but these errors were encountered:
Good Morning.
Do you mind if I work on this? Clear up the code, add a custom scratch domain in as an argument and update the documentation; then make a pull request? Or are you going to.
In my CI process, I create a scratch org and immediately after I use this module to authenticate and get an access token using the username, password, session_token and domain. Intermittently, I receive an
INVALID_LOGIN
message.This is more of a salesforce-side issue where DNS propagation (or some record propagation) takes time to complete and the scratch org isnt available except via the direct
MyDomain
URL for a while. Attempting to access it using the default front doorhttps://test.salesforce.com
yieldsINVALID_LOGIN
errors.To resolve this on my end, I am using these couple of lines of edits in
login.py
on line 220:This allows me to pass the direct URL to the scratch org for a significantly higher success rate. Would you consider incorporating this change into the package?
The text was updated successfully, but these errors were encountered: