Docusign gem 阻止请求
Docusign gem block request
我在 ruby 和 rails 上使用 DocuSign ruby 客户端 (https://github.com/docusign/docusign-ruby-client) 通过电子邮件向一些客户端发送文档,但是当我部署该项目在 15 分钟后应用程序和 DocuSign 之间的请求被“暂停”。出于某种原因,gem 创建了请求但没有发送它,如下图所示,我在 gem:
中启用了调试
此时日志在 15 分钟后不再打印。
在我的应用程序中发送消息的代码是:
access_token = "xxxxxxx"
account_id = "xxxxxxxxx"
base_path = "xxxxxxxxxx"
envelope_args = {
signer_email: contact.email,
signer_name: contact.name,
template_id: document.docusign_id
}
@args = {
account_id: account_id,
base_path: base_path,
access_token: access_token,
envelope_args: envelope_args
}
envelope_args = @args[:envelope_args]
# 1. Create the envelope request object
envelope_definition = make_envelope(envelope_args)
# 2. Call Envelopes::create API method
# Exceptions will be caught by the calling function
envelope_api = create_envelope_api(@args)
envelope_api.create_envelope @args[:account_id], envelope_definition
我不知道我能做什么。
谢谢
您的屏幕截图显示了 18:29:05 发生的一切 -- 我不明白这个问题。
此外,您是否尝试过 install/using 和 RoR code example?
看看有没有同样的问题
我们在我们的代码中寻找问题,但我们在 gem here always freezes. So we debugged there and we saw that curl was being used for ruby. At that point we saw that curl was trying to reconnect with Docusign but it wasn't success, so we found this issue in the version of curl that we had (https://github.com/curl/curl/issues/4499 )
发送请求的步骤中看到
为了解决这个问题,我们将版本更新到最新,并解决了这个问题。
感谢您的回答。
我在 ruby 和 rails 上使用 DocuSign ruby 客户端 (https://github.com/docusign/docusign-ruby-client) 通过电子邮件向一些客户端发送文档,但是当我部署该项目在 15 分钟后应用程序和 DocuSign 之间的请求被“暂停”。出于某种原因,gem 创建了请求但没有发送它,如下图所示,我在 gem:
中启用了调试此时日志在 15 分钟后不再打印。
在我的应用程序中发送消息的代码是:
access_token = "xxxxxxx"
account_id = "xxxxxxxxx"
base_path = "xxxxxxxxxx"
envelope_args = {
signer_email: contact.email,
signer_name: contact.name,
template_id: document.docusign_id
}
@args = {
account_id: account_id,
base_path: base_path,
access_token: access_token,
envelope_args: envelope_args
}
envelope_args = @args[:envelope_args]
# 1. Create the envelope request object
envelope_definition = make_envelope(envelope_args)
# 2. Call Envelopes::create API method
# Exceptions will be caught by the calling function
envelope_api = create_envelope_api(@args)
envelope_api.create_envelope @args[:account_id], envelope_definition
我不知道我能做什么。
谢谢
您的屏幕截图显示了 18:29:05 发生的一切 -- 我不明白这个问题。
此外,您是否尝试过 install/using 和 RoR code example? 看看有没有同样的问题
我们在我们的代码中寻找问题,但我们在 gem here always freezes. So we debugged there and we saw that curl was being used for ruby. At that point we saw that curl was trying to reconnect with Docusign but it wasn't success, so we found this issue in the version of curl that we had (https://github.com/curl/curl/issues/4499 )
发送请求的步骤中看到为了解决这个问题,我们将版本更新到最新,并解决了这个问题。
感谢您的回答。