小编win*_*nii的帖子

在Django中禁用SSL验证Sentry Raven

我想添加一个具有自签名证书的test sentry实例.

该应用具有默认的RAVEN_CONFIG

RAVEN_CONFIG = {
    'dsn': 'https://xxxx@sentry.tst2.server.com/2',
    # If you are using git, you can also automatically configure the
    # release based on the git info.
    'release': raven.fetch_git_sha(os.path.dirname(os.pardir)),
}
Run Code Online (Sandbox Code Playgroud)

我试图添加'verify_ssl':0到配置字典无济于事.

这是我得到的错误:

Traceback (most recent call last):
  File "/opt/apps/.virtualenvs/palantir/local/lib/python2.7/site-packages/raven/transport/threaded.py", line 162, in send_sync
    super(ThreadedHTTPTransport, self).send(data, headers)
  File "/opt/apps/.virtualenvs/palantir/local/lib/python2.7/site-packages/raven/transport/http.py", line 47, in send
    ca_certs=self.ca_certs,
  File "/opt/apps/.virtualenvs/palantir/local/lib/python2.7/site-packages/raven/utils/http.py", line 62, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/lib/python2.7/urllib2.py", line 431, in open
    response = self._open(req, data)
  File "/usr/lib/python2.7/urllib2.py", line 449, in …
Run Code Online (Sandbox Code Playgroud)

django ssl sentry raven

2
推荐指数
1
解决办法
1396
查看次数

标签 统计

django ×1

raven ×1

sentry ×1

ssl ×1