Referrer error on 9.1.2

Hello,
we’re running Sentry On-Premise 9.1.2 (yes, we’ve not upgraded, yet).

We encountered an issue with a new project, an iOS-App Project, which can’t send events to the sentry project.

Logs from sentry web container are:

11:36:55 [WARNING] django.request: Forbidden (Referer checking failed - no Referer.): /api/59/envelope/ (status_code=403 request=<WSGIRequest: POST u’/api/59/envelope/’>)
172.18.0.1 - - [22/Oct/2020:11:36:55 +0000] “POST /api/59/envelope/ HTTP/1.1” 403 6406 “-” “sentry.cocoa”
11:36:56 [WARNING] django.request: Forbidden (Referer checking failed - no Referer.): /api/59/envelope/ (status_code=403 request=<WSGIRequest: POST u’/api/59/envelope/’>)
172.18.0.1 - - [22/Oct/2020:11:36:56 +0000] “POST /api/59/envelope/ HTTP/1.1” 403 6406 “-” “sentry.cocoa”
11:36:56 [WARNING] django.request: Forbidden (Referer checking failed - no Referer.): /api/59/envelope/ (status_code=403 request=<WSGIRequest: POST u’/api/59/envelope/’>)
172.18.0.1 - - [22/Oct/2020:11:36:56 +0000] “POST /api/59/envelope/ HTTP/1.1” 403 6406 “-” “sentry.cocoa”
11:36:56 [WARNING] django.request: Forbidden (Referer checking failed - no Referer.): /api/59/envelope/ (status_code=403 request=<WSGIRequest: POST u’/api/59/envelope/’>)
172.18.0.1 - - [22/Oct/2020:11:36:56 +0000] “POST /api/59/envelope/ HTTP/1.1” 403 6406 “-” “sentry.cocoa”
11:36:57 [WARNING] django.request: Forbidden (Referer checking failed - no Referer.): /api/59/envelope/ (status_code=403 request=<WSGIRequest: POST u’/api/59/envelope/’>)
172.18.0.1 - - [22/Oct/2020:11:36:57 +0000] “POST /api/59/envelope/ HTTP/1.1” 403 6406 “-” “sentry.cocoa”
11:36:57 [WARNING] django.request: Forbidden (Referer checking failed - no Referer.): /api/59/envelope/ (status_code=403 request=<WSGIRequest: POST u’/api/59/envelope/’>)
172.18.0.1 - - [22/Oct/2020:11:36:57 +0000] “POST /api/59/envelope/ HTTP/1.1” 403 6406 “-” “sentry.cocoa”
11:47:56 [WARNING] django.request: Forbidden (Referer checking failed - no Referer.): /api/59/envelope/ (status_code=403 request=<WSGIRequest: POST u’/api/59/envelope/’>)
172.18.0.1 - - [22/Oct/2020:11:47:56 +0000] “POST /api/59/envelope/ HTTP/1.1” 403 6406 “-” “sentry.cocoa”

I can’t find any solution for this. In newer sentry versions sentry ships with a dedicated nginx container or handle events via relay. But not in version 9.1.2.

Does anyone have any hints for me how to resolve this?

Thanks in advance,
Kokel

Hi Kokel, I’m assuming you’ve just upgraded to Cocoa SDK version 6.0.x. Unfortunately, this version requires Sentry 20.6.0 or later, so I definitely encourage you to upgrade :slight_smile:

In the meanwhile, I believe you should be able to run with SDK version 5.2.2, which does not require the new endpoint yet.

1 Like

Thanks! We will upgrade :smiley: