请问这是什么错误啊,系统 mac,python 客户端。 代码
from raven import Client
client = Client('https://b2e8a12734ae45a5b2ceb0e77040b05c:[email protected]/1')
try:
1 / 0
except ZeroDivisionError:
client.captureException()
报错内容
Sentry responded with an error: <urlopen error [Errno 54] Connection reset by peer> (url: https://sentry.log.com/api/1/store/)
1
kdwycz 2018-11-06 09:51:09 +08:00
raven 版本? 记得新版的 dsn 地址不是这样的
|
2
cxa OP @kdwycz >>> 你好是 raven.get_version() '6.9.0',
另外我在 docker-compose.yml 也加了 SENTRY_DSN 字段 environment: SENTRY_MEMCACHED_HOST: memcached SENTRY_REDIS_HOST: redis SENTRY_POSTGRES_HOST: postgres SENTRY_EMAIL_HOST: smtp SENTRY_SECRET_KEY : '密钥' SENTRY_DSN : 'dsn 字符串' |
3
kslr 2018-11-06 11:52:53 +08:00
Connection reset by peer
|
5
cxa OP @kdwycz
页面是这样的 Get started by selecting the platform or language that powers your application. DSN https://b2e8a12734ae45a5b2ceb0e77040b05c:[email protected]/1 Public DSN https://[email protected]/1 |