Skip to content
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

cloudforce.com instance issue #17

Open
Kevmo92 opened this issue Apr 9, 2020 · 0 comments
Open

cloudforce.com instance issue #17

Kevmo92 opened this issue Apr 9, 2020 · 0 comments

Comments

@Kevmo92
Copy link

Kevmo92 commented Apr 9, 2020

When an instance is on the cloudforce.com domain of salesforce, the added .salesforce.com in the session class breaks interacting with the org.

This could be fixed by changing the SfdcSession.get_server_url() method to look like:

    def get_server_url(self):
        if not self._instance:
            url = SfdcSession._LOGIN_URL.format(**{'instance': 'test' if self._is_sandbox else 'login'})
        url = SfdcSession._LOGIN_URL.format(**{'instance': self._instance})
        if re.search(r'cloudforce', url):
            url = re.sub(r'\.salesforce\.com$', '', url)
        return url
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant