Skip to content

cloudforce.com instance issue #17

@Kevmo92

Description

@Kevmo92

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions