ERROR: Unexpected status code: 403

I was following the initial setup for Django and sentry is not logging the error.

[sentry] DEBUG: Sending event, type:null level:error event_id:530d71462725448eb3446e5030ae9047 project:5220882 host:o386117.ingest.sentry.io
Internal Server Error: /sentry-debug/
Traceback (most recent call last):
File “/home/aphilips/dashboard/env/lib/python3.6/site-packages/django/core/handlers/exception.py”, line 34, in inner
response = get_response(request)
File “/home/aphilips/dashboard/env/lib/python3.6/site-packages/django/core/handlers/base.py”, line 115, in _get_response
response = self.process_exception_by_middleware(e, request)
File “/home/aphilips/dashboard/env/lib/python3.6/site-packages/django/core/handlers/base.py”, line 113, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File “/home/aphilips/dashboard/authentication/urls.py”, line 13, in trigger_error
division_by_zero = 1 / 0
ZeroDivisionError: division by zero
[01/May/2020 21:05:22] “GET /sentry-debug/ HTTP/1.1” 500 80381
[01/May/2020 21:05:22] “GET /static/debug_toolbar/css/print.css HTTP/1.1” 304 0
[01/May/2020 21:05:22] “GET /static/debug_toolbar/js/toolbar.js HTTP/1.1” 304 0
[01/May/2020 21:05:22] “GET /static/debug_toolbar/img/ajax-loader.gif HTTP/1.1” 304 0
[01/May/2020 21:05:22] “GET /static/debug_toolbar/css/toolbar.css HTTP/1.1” 304 0
[sentry] ERROR: Unexpected status code: 403 (body: b’{“detail”:“event submission rejected with_reason: ProjectId”}')

I deleted the old project and started with a new one but I get this

[sentry] DEBUG: Sending event, type:null level:error event_id:aaf67dcdfb144e3c964a7a19b9470744 project:5220919 host:o386117.ingest.sentry.io
Internal Server Error: /sentry-debug/
Traceback (most recent call last):
File “/home/aphilips/dashboard/env/lib/python3.6/site-packages/django/core/handlers/exception.py”, line 34, in inner
response = get_response(request)
File “/home/aphilips/dashboard/env/lib/python3.6/site-packages/django/core/handlers/base.py”, line 115, in _get_response
response = self.process_exception_by_middleware(e, request)
File “/home/aphilips/dashboard/env/lib/python3.6/site-packages/django/core/handlers/base.py”, line 113, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File “/home/aphilips/dashboard/authentication/urls.py”, line 13, in trigger_error
division_by_zero = 1 / 0
ZeroDivisionError: division by zero

1 Like

I’ve got the same error. Seems that Sentry is down and can’t even admit it. Nice!