小编Dee*_*thi的帖子

通过C#中的DocuSign api登录时"操作已超时"错误

我从登录时的DocuSign API收到以下错误,自31/05/2018起.

DocuSign.eSign.Client.ApiException:'调用登录时出错:操作已超时'.

自去年以来,我们一直在测试DocuSign API,它与我们的内部集成应用程序一起正常运行.昨天是我们第一次在登录时收到此错误消息,问题仍然存在.如果我通过演示版DocuSign网站https://appdemo.docusign.com登录,我可以登录.但如果我通过DocuSign API尝试相同,则会出现超时错误.

Configuration.ApiClient.Configuration.ApiClient.RestClient.BaseUrl设置为https://demo.docusign.net/restapi/

new System.Collections.Generic.Mscorlib_DictionaryDebugView<string, string>(Configuration.DefaultHeader).Items[0] 被设置为 {[X-DocuSign-Authentication, {"Username":[username], "Password":[password], "IntegratorKey":[IntegratorKey]}]}

我们根本没有更改用户名或密码或IntegratorKey.

response.StatusCode返回的值为0.请在下面找到我的登录代码.

public ApiResponse< LoginInformation > LoginWithHttpInfo (AuthenticationApi.LoginOptions options = null)
    {            

        var path_ = "/v2/login_information";

        var pathParams = new Dictionary<String, String>();
        var queryParams = new Dictionary<String, String>();
        var headerParams = new Dictionary<String, String>(Configuration.DefaultHeader);
        var formParams = new Dictionary<String, String>();
        var fileParams = new Dictionary<String, FileParameter>();
        Object postBody = null;

        // to determine the Content-Type header
        String[] httpContentTypes = new …
Run Code Online (Sandbox Code Playgroud)

docusignapi

5
推荐指数
1
解决办法
674
查看次数

如何使用RNGCryptoServiceProvider获取大于256的随机数?

如何使用RNGCryptoServiceProvider获得大于256的随机数?

码:

private static RNGCryptoServiceProvider rngCsp = new RNGCryptoServiceProvider();

byte[] randomNumber = new byte[1];

//Fill the array with a random value.   

rngCsp.GetBytes(randomNumber);
Run Code Online (Sandbox Code Playgroud)

c# random

-1
推荐指数
1
解决办法
236
查看次数

标签 统计

c# ×1

docusignapi ×1

random ×1