'Use simple Salesforce package to make SOQL calls using custom salesforce URL as a parameter

I am trying to use simple Salesforce python package to make SOQL calls but the salesforce link I am tyring to connect to is a non-prod environment (uat.lightning.force.com). Howerver, I keep running in to "AttributeError" exception.

Do you know guys if there is a workaround?



Solution 1:[1]

Don't use the lightning domain. Use generic test.salesforce.com (unless admin blocked it, you can check in Setup -> My Domain). Or productiondomain--uat.my.salesforce.com.

If you still get errors - check login history and post your connection code?

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 eyescream