-
Notifications
You must be signed in to change notification settings - Fork 154
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
"Invalid session id" with oauth access token valid for REST #44
Comments
Strangely enough, when I do this in my Terminal: with my instance and token in the command where it says and , it does NOT give me the "Invalid session id" exception. (It does give me an error ( So now I'm thinking there is an issue in this library. Has anyone else found this to be the case? |
@tscizzle are you using the version out of pypi or the current master? I'd recommend trying with the current master. Also can you use the session Id you have with simple_salesforce to perform a query of any kind? |
I regular pip installed it, so I guess pypi. I will try pip installing current master. I will also try a call with simple-salesforce. Thanks, and I'll respond with results! (And as a follow-up to last message, I actually successfully made the |
or add |
Dope! I did For stability, and anyone else looking at this, I can pip install from the exact archive like you did, instead of from generic latest, which can change in the future. |
Just curious, does this work because there's some bug fix on that dev version that's not on pypi yet, but it will be soon? Not an urgent question cuz I'm all set now, just curious. I appreciate the prompt help, Chris! You da best. |
Something in #40 could have fixed it. Maybe going to all requests or better header handling or something like that. It's a big PR with lots of changes so it'd be hard to pick out the one thing that did it. |
Superseded by #41 which is tracking release of 2.0 to pypi |
The bulk api reports this error on a TLS1.0 connection, or other SSL issues. With the old library, we had to make sure our macOS devs weren't using the system python (https://eclecticlight.co/2016/03/23/the-tls-mess-in-os-x-el-capitan/). I wonder if the switch to requests instead of httplib helps? |
I am using a Salesforce oauth access token for my developer salesforce account, which I know is a valid token because I can query the REST API using it.
But when I do
I've seen a lot of questions about Bulk API, and seemingly valid tokens that cause that error.
yatish27/salesforce_bulk_api#33
https://salesforce.stackexchange.com/questions/136150/bulk-api-rejects-seemingly-valid-session-id
https://developer.salesforce.com/forums/?id=906F0000000fyaLIAQ
https://success.salesforce.com/answers?id=9063A000000iUovQAE
But I can't gather what the real answer is. Might this have to do with this Python library, or is it an account settings issue, (or a known API bug)?
The text was updated successfully, but these errors were encountered: