Здравствуйте, я веб разработчик и в моём проекте используется Sentry, который автоматически блокируется AdGuard. Блокируется, при отправке запросов.
Sentry используется для отправки диагностических данных, при возникновении JS ошибок, в процессе работы сайта.
Вот так выглядит POST запрос Sentry, при использовании локального сервера(http://localhost:8080):
Итак, что можно с этим сделать? Sentry будет очень полезен, но только в том случае, если его запросы не будут блокировать блокировщики рекламы, которые используют ваш фильтр.
Например, здесь: https://github.com/getsentry/sentry-javascript/issues/2072, проблема возникает из-за того, что uBlock блокирует запросы Sentry, используя ваш фильтр.
Chrome 74.0.3729.169
AdGuard for Windows 7.1.2817.0
@sentry/browser 5.5.0
Sentry используется для отправки диагностических данных, при возникновении JS ошибок, в процессе работы сайта.
Вот так выглядит POST запрос Sentry, при использовании локального сервера(http://localhost:8080):
Code:
General:
Request URL: https://sentry.io/api/1509214/store/?sentry_key=6b82c070a6874f70ad6e9fe5ebcb9fb8&sentry_version=7
Request Method: POST
Status Code: 500 Request Blocked
Remote Address: 35.188.42.15:443
Referrer Policy: origin
Response Headers:
Access-Control-Allow-Credentials: true
Access-Control-Allow-Origin: http://localhost:8080
Connection: close
Content-Length: 135636
Content-Type: text/html; charset=utf-8
X-Adguard-Filtered: AdGuard for Windows; version=7.1.2817.0
X-Adguard-Rule: rule=%7C%7Csentry.io/api/*/store/?; filterId=3
Request Headers:
Provisional headers are shown
Content-Type: text/plain;charset=UTF-8
Origin: http://localhost:8080
Referer: http://localhost:8080/
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 Safari/537.36
Query String Parameters:
sentry_key: 6b82c070a6874f70ad6e9fe5ebcb9fb8
sentry_version: 7
Request Payload
breadcrumbs: [{timestamp: 1563979795.025, category: "console",…},…]
0: {timestamp: 1563979795.025, category: "console",…}
category: "console"
data: {extra: {arguments: ["2019-07-24T14:49:55.022Z: Viewport height is too small: 226"]},…}
extra: {arguments: ["2019-07-24T14:49:55.022Z: Viewport height is too small: 226"]}
logger: "console"
level: "error"
message: "2019-07-24T14:49:55.022Z: Viewport height is too small: 226"
timestamp: 1563979795.025
1: {timestamp: 1563979795.058, category: "ui.click", message: "div#scroll-area > div.smooth-scrollbar"}
category: "ui.click"
message: "div#scroll-area > div.smooth-scrollbar"
timestamp: 1563979795.058
2: {timestamp: 1563979795.479, category: "xhr",…}
category: "xhr"
data: {method: "GET", url: "http://localhost:8080/sockjs-node/info?t=1563979795087", status_code: 200}
method: "GET"
status_code: 200
url: "http://localhost:8080/sockjs-node/info?t=1563979795087"
timestamp: 1563979795.479
type: "http"
3: {timestamp: 1563979795.482, category: "xhr",…}
category: "xhr"
data: {method: "GET", url: "http://192.168.1.110:8080/sockjs-node/info?t=1563979795090", status_code: 200}
method: "GET"
status_code: 200
url: "http://192.168.1.110:8080/sockjs-node/info?t=1563979795090"
timestamp: 1563979795.482
type: "http"
4: {timestamp: 1563979795.491, category: "ui.click",…}
category: "ui.click"
message: "div#scroll-content > div > a.v-list__tile.v-list__tile--link.theme--dark"
timestamp: 1563979795.491
5: {timestamp: 1563979801.677, category: "ui.click",…}
category: "ui.click"
message: "div.v-btn__content > i.v-icon.fas.fa-download.theme--dark"
timestamp: 1563979801.677
event_id: "c01fceecef2a493ca5786360297490ce"
exception: {values: [{type: "TypeError", value: "this.$asyncComputed.SaveList.update2 is not a function",…}]}
values: [{type: "TypeError", value: "this.$asyncComputed.SaveList.update2 is not a function",…}]
0: {type: "TypeError", value: "this.$asyncComputed.SaveList.update2 is not a function",…}
stacktrace: {frames: [{colno: 9,…}, {colno: 24,…},…]}
frames: [{colno: 9,…}, {colno: 24,…},…]
0: {colno: 9,…}
colno: 9
filename: "webpack-internal:///./node_modules/@babel/runtime-corejs2/helpers/esm/asyncToGenerator.js"
function: "_next"
in_app: true
lineno: 31
1: {colno: 24,…}
colno: 24
filename: "webpack-internal:///./node_modules/@babel/runtime-corejs2/helpers/esm/asyncToGenerator.js"
function: "asyncGeneratorStep"
in_app: true
lineno: 9
2: {colno: 21, filename: "webpack-internal:///./node_modules/regenerator-runtime/runtime.js",…}
colno: 21
filename: "webpack-internal:///./node_modules/regenerator-runtime/runtime.js"
function: "Generator.prototype.<computed> [as next]"
in_app: true
lineno: 114
3: {colno: 22, filename: "webpack-internal:///./node_modules/regenerator-runtime/runtime.js",…}
colno: 22
filename: "webpack-internal:///./node_modules/regenerator-runtime/runtime.js"
function: "Generator.invoke [as _invoke]"
in_app: true
lineno: 296
4: {colno: 40, filename: "webpack-internal:///./node_modules/regenerator-runtime/runtime.js",…}
colno: 40
filename: "webpack-internal:///./node_modules/regenerator-runtime/runtime.js"
function: "tryCatch"
in_app: true
lineno: 62
5: {colno: 46,…}
colno: 46
filename: "webpack-internal:///./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/vuetify-loader/lib/loader.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/Pages/Saves.vue?vue&type=script&lang=js&"
function: "VueComponent._callee2$"
in_app: true
lineno: 389
type: "TypeError"
value: "this.$asyncComputed.SaveList.update2 is not a function"
platform: "javascript"
release: "0.0.4"
request: {url: "http://localhost:8080/#/Saves", headers: {,…}}
headers: {,…}
User-Agent: "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 Safari/537.36"
url: "http://localhost:8080/#/Saves"
sdk: {name: "sentry.javascript.browser", packages: [{name: "npm:@sentry/browser", version: "5.5.0"}],…}
integrations: ["InboundFilters", "FunctionToString", "TryCatch", "Breadcrumbs", "GlobalHandlers", "LinkedErrors",…]
0: "InboundFilters"
1: "FunctionToString"
2: "TryCatch"
3: "Breadcrumbs"
4: "GlobalHandlers"
5: "LinkedErrors"
6: "UserAgent"
7: "Vue"
name: "sentry.javascript.browser"
packages: [{name: "npm:@sentry/browser", version: "5.5.0"}]
0: {name: "npm:@sentry/browser", version: "5.5.0"}
name: "npm:@sentry/browser"
version: "5.5.0"
version: "5.5.0"
Итак, что можно с этим сделать? Sentry будет очень полезен, но только в том случае, если его запросы не будут блокировать блокировщики рекламы, которые используют ваш фильтр.
Например, здесь: https://github.com/getsentry/sentry-javascript/issues/2072, проблема возникает из-за того, что uBlock блокирует запросы Sentry, используя ваш фильтр.
Chrome 74.0.3729.169
AdGuard for Windows 7.1.2817.0
@sentry/browser 5.5.0