• Sumir Saini 14
  • NEWBIE
  • 0 Points
  • Member since 2019

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies
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
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