You need to sign in to do that
Don't have an account?
Sneha Kavinkar
key error : access_token
Hello,
I am using beatbox and salesforce-reporting module for login and downloading reports using python.
I was able to login successfully however when i try to pull reports using salesforce-reporting it gives me following error
I double checked my credentials and everything is proper except for last parameter
Can anyone please guide what should i put for 'your_instance' and what should be possible cause of my error.
Thanks in advance
I am using beatbox and salesforce-reporting module for login and downloading reports using python.
I was able to login successfully however when i try to pull reports using salesforce-reporting it gives me following error
File "C:\Admin\Python27\lib\site-packages\salesforce_reporting\login.py", line 17, in __init__ self.token = self._get_token(payload) File "C:\Admin\Python27\lib\site-packages\salesforce_reporting\login.py", line 25, in _get_token return token_request.json()['access_token'] KeyError: 'access_token'Seems like my authentication is not successful for pulling reports.
I double checked my credentials and everything is proper except for last parameter
my_sf = salesforce_reporting.Connection('your_id', 'your_secret', 'your_username', 'your_password', 'your_instance')I was not sure what should be value for 'your_instance' hence added dummy value ''na32.salesforce.com''.
Can anyone please guide what should i put for 'your_instance' and what should be possible cause of my error.
Thanks in advance
Instructions on how to create the connected app here: https://edgecate.com/articles/sfdc/