function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
woody3549woody3549 

Salesforce Python toolkit

Hello,

I am currently try to use the Salesforce Python toolkit (http://code.google.com/p/salesforce-python-toolkit/).
However, most of the time, I get an annoying
"Connecting to Salesforce...
URL Connection ERROR :  <urlopen error [Errno 54] Connection reset by peer>".

Here is my code extract:

print "Connecting to Salesforce..."
from sforce.enterprise import SforceEnterpriseClient
h = SforceEnterpriseClient('enterprise.wsdl.xml')
h.login('user', 'pass', 'token')
print "Connection to Salesforce OK"


Can anyone please let me know what I might be doing wrong ?

Thanks,
Boris

SoCal AdminSoCal Admin

 

Presumably you've replaced your credentials with the correct ones. 

 

Did you specify your security token?  Enable Remote Access application in SalesForce?  The basic tutorials worked for me althought I would have liked better documented sample files (not by much).  Just give some more examples involving custom objects and some links to the object reference.

woody3549woody3549

Hello,

 

I did provide my security token.

However, I did not enable remote access since I am using the toolkit from the command line like so:

python SF_script.py

And I don't know what to provide as a recall URL. Would you know about this ?

 

Can you please provide the link to the sample files you used ?

 

Thanks