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

Appears to have stopped working on SF sandbox due to URL change #15

Open
seanpd opened this issue May 14, 2013 · 0 comments
Open

Appears to have stopped working on SF sandbox due to URL change #15

seanpd opened this issue May 14, 2013 · 0 comments

Comments

@seanpd
Copy link

seanpd commented May 14, 2013

Sometime in the past week it no longer accesses the SF sandbox.
I think SF changed the URL so the #parse_instance regex no longer recognizes it.

This monkeypatch makes it work again:

module SalesforceBulk
 class Connection
   def parse_instance()
     m = /https:\/\/([a-z]{2,2}[0-9]{1,2})(-api|\.)/.match(@server_url)
     return '' unless m
     @instance = m[1]
   end
 end
end

The @server_url used to look something like https://cs14-api.salesforce.com/services/Soap/u/24.0/x
but now it looks like https://cs14.salesforce.com/services/Soap/u/24.0/x
The orig code wants the '-api' there.

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