The self-built sentry platform cannot catch exceptions.

the sentry platform built by docker on Aliyun can throw related exceptions according to the official documents, and the sentry platform cannot get it

.

Server: Aliyun cantos7.4 64-bit
Docker version: 18.09.0,

has tried to reinstall, etc., and there are not many online-related solutions.
also attempts to deploy the sentry platform locally, and according to the exception in the official document, the platform cannot get it, and an additional exception is thrown, as follows:
urllib.error.HTTPError: HTTPError 403: OK

related codes

Code:

from raven import Client

client = Client("http://xxxxx@***.***.***.***:9000/sentry/2")

try:
    1 / 0

except ZeroDivisionError:
    client.captureException()

:
Sentry responded with an error: HTTP Error 403: OK (url: http://***.***.***.***:9000/sentry/api/2/store/)
Traceback (most recent call last):
  File "/Users/yiyan/Anaconda3/anaconda3/envs/python36/lib/python3.6/site-packages/raven/transport/threaded.py", line 165, in send_sync
    super(ThreadedHTTPTransport, self).send(url, data, headers)
  File "/Users/yiyan/Anaconda3/anaconda3/envs/python36/lib/python3.6/site-packages/raven/transport/http.py", line 43, in send
    ca_certs=self.ca_certs,
  File "/Users/yiyan/Anaconda3/anaconda3/envs/python36/lib/python3.6/site-packages/raven/utils/http.py", line 66, in urlopen
    return opener.open(url, data, timeout)
  File "/Users/yiyan/Anaconda3/anaconda3/envs/python36/lib/python3.6/urllib/request.py", line 532, in open
    response = meth(req, response)
  File "/Users/yiyan/Anaconda3/anaconda3/envs/python36/lib/python3.6/urllib/request.py", line 642, in http_response
    "http", request, response, code, msg, hdrs)
  File "/Users/yiyan/Anaconda3/anaconda3/envs/python36/lib/python3.6/urllib/request.py", line 570, in error
    return self._call_chain(*args)
  File "/Users/yiyan/Anaconda3/anaconda3/envs/python36/lib/python3.6/urllib/request.py", line 504, in _call_chain
    result = func(*args)
  File "/Users/yiyan/Anaconda3/anaconda3/envs/python36/lib/python3.6/urllib/request.py", line 650, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 403: OK
["ZeroDivisionError: division by zero", "  File "demo/d1.py", line 20, in <module>"]

now I don"t know how to modify it so that the sentry platform I built can get the locally thrown exception.

Nov.13,2021
  • Sentry deployment issu

    Server configuration 2-core 4G, Ali Cloud ECS deploy sentry url: using docker https: github.com getsentry . first clone, then cd and then copy and paste in readme Generate a secret key. Add it to .env as SENTRY_SECRET_KEY this step has tried to...

    Mar.17,2022
  • Command not found: sentry

    the command could not be found using sentry installed by Docker? The project can already be seen through localhost, but there is no such command, why? ...

    Jul.09,2022
Menu