-
Notifications
You must be signed in to change notification settings - Fork 13.8k
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
Airflow SalesforceHook empty security token #23910
Comments
Thanks for opening your first issue here! Be sure to follow the issue template! |
You are using |
@eladkal I upgraded to 3.4.4 as shown below pip show apache-airflow-providers-salesforce After running, still get same error Thanks! |
Please follow There are different types of authentication to salesforce. Make sure you are following the insteuctions |
Apache Airflow version
2.2.2
What happened
When creating salesforce hook like below get
sf = SalesforceHook(salesforce_conn_id="test_sf")
Get below TypeError
You must provide login information or an instance and token
This is test salesforce domain.
User name and password are set correctly in Airflow connection but security token is not filled.
I expect the connection to setup without error
What you think should happen instead
Changing
airflow/airflow/providers/salesforce/hooks/salesforce.py
Line 144 in 1d53bec
to below works, i.e. connection is established
security_token=extras["extra__salesforce__security_token"] or '',
How to reproduce
Setup salesforce connection in airflow with
Operating System
macOS 11.2.3
Versions of Apache Airflow Providers
apache-airflow-providers-salesforce 3.3.0
simple-salesforce 1.11.4
Deployment
Virtualenv installation
Deployment details
No response
Anything else
No response
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: