Closed cpr-slifland closed 9 months ago
I looked through your source code and it looks like the calls to InterceptRequest and InterceptResponse are present but commented out with no explanation. Can these be restored?
Greetings,
I appreciate your message to DocuSign Developer support. We will investigate about this.
Hello, has there been any progress on this? It seems like it should be an easy change and it is blocking me from using the current version of your SDK.
Hello, our team is working on this, but we don't have an ETA yet.
@slif-cpr - I've just started on the new version of the SDK as well and wondering how are you using DocuSignClient ? Do you use the CallApiAysnc method to make calls to DocuSign ? Or, expose the DocuSignClient to other classes like EnvelopesApi ?
Which one is ideal based on your experience.
Hi @Sudharsan-Narayanasamy,
We are still using version 5.6.0 of the SDK. I believe DocuSignClient was introduced in a later version. We defined a subclass of ApiClient to override InterceptRequest and InterceptResponse, and then we always provide an instance of that client when initializing EnvelopesApi to make API calls. Let me know if that doesn't answer your question
Thank you @slif-cpr for quick response. It does answer my question and now I have few more :)
Do you use dependency injection for EnvelopesApi ? InterceptRequest is where you add the token ? Also, have you used RequestJWTApplicationToken ?
Hi @Sudharsan-Narayanasamy, sorry I have not had a chance to respond sooner.
When we instantiate EnvelopesApi
, we pass in our custom subclass of ApiClient
that overrides InterceptRequest
and InterceptResponse
, so yes, I suppose we're using dependency injection.
We are only using InterceptRequest
and InterceptResponse
for logging. We add the token to the default headers when we instantiate the ApiClient subclass.
We are using APIClient.RequestJWTUserToken
- haven't checked how that differs from RequestJWTApplicationToken
.
Our team has also faced this issue.
@InbarGazit Could you please take a look at it?
Hi @Sudharsan-Narayanasamy, does your team have any update on when this issue is expected to be resolved?
Hi @slif-cpr @ugrdtr2312, this issue should be resolved in version 6.6.0 of the NuGet package that was released today.
Closing due to fix
I'm in the process of updating my product's dependency on a v 5.x version of the SDK. I support the deprecation of RestSharp, but in the process it seems the SDK broke the
InterceptRequest
andInterceptResponse
methods ofDocuSignClient
.After making the changes required to migrate to v 6.x, those methods are never invoked. I've examined the decompiled code for the DocuSign SDK and they do not appear to be called by EnvelopesApi.