python-salesforce-api icon indicating copy to clipboard operation
python-salesforce-api copied to clipboard

Hit Destination URL not reset. The URL returned from login must be set

Open QingsongYao opened this issue 5 years ago • 2 comments

Destination URL not reset. The URL returned from login must be set

Might related to https://developer.salesforce.com/forums/?id=906F00000008rtEIAQ

I am using auth_token as the way to auth

query: client.sobjects.query("SELECT Id, FirstName, LastName FROM Contact WHERE FirstName='Felix'")

QingsongYao avatar Apr 22 '20 04:04 QingsongYao

I'm sure you've probably solved this by now but I had the same issue and it's caused by not having a domain set when initialising the client.

client = Salesforce(
    access_token = '<YOUR_ACCESS_TOKEN>',
    domain = '<YOUR_DOMAIN>'
)

I'm hoping to find some time to open a PR that would make the README clearer when it comes to the parameters that can be passed to the Salesforce method.

mattschofield avatar Jun 18 '21 15:06 mattschofield

Hello!

I'm sorry for the late late late reply, I've been on parental leave.

I'd be happy to accept a PR from @mattschofield! :) If not, I will update the code and fix the documentation, as this is a bit misleading!

felixlindstrom avatar Jun 18 '21 18:06 felixlindstrom