-
Notifications
You must be signed in to change notification settings - Fork 167
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
baseUrl #95
Comments
Whoa that's a good catch @willbt. Definitely something we should square away. |
I think #102 will sort this out. |
Actually, #102 as written won't fix this. The problem is that the usual docusign_rest client code is probably something like:
That is, I suspect clients are fetching the account id via the rake task, explicitly setting the account_id in an initializer and then relying on that account id being used in all requests. So So we need to change things so that this information is being fetched from docusign's API. Some approaches:
|
Hey folks. Thanks for all your great work. How would you recommend working around this issue for anyone who needs to go to Production today? |
@nmccrea FWIW I've been running in production for a couple months and the subdomain for my account hasn't changed. Maybe someone with more experience can weigh in with how often it does change... |
Great work on this wrapper.
When moving from the Demo environment to Production I ran into issues because the DocuSign Endpoint is issued in the baseUrl which is part of the response from the login.
However this wrapper doesn't use the baseUrl for all subsequent requests instead opting for the static configuration endpoint.
Below is what the DocuSign support team said.
"This is most likely an issue with your baseUrl. In the demo environment all account URLs start with demo.docusign.net, however in production there are multiple sub-domains like www, na2, eu, etc.
To resolve all you need to do is parse the baseUrl value that is returned from the login call (property will be called base_uri if you are using OAuth authentication) and use that for subsequent API requests."
"It’s possible an account’s data center (ie baseUrl) can change though it’s rare. In either case best practice here is to always parse the Login API response you receive and use the user’s baseUrl that is returned in there as that will always be accurate and up to date.
"
The text was updated successfully, but these errors were encountered: