From da413abd142d0052da8ca4129a040b0ad1b8a8b8 Mon Sep 17 00:00:00 2001 From: "gorbenko.pavel" Date: Fri, 30 Oct 2026 18:42:47 +0500 Subject: [PATCH] =?UTF-8?q?=D0=9E=D1=82=D0=BA=D0=BB=D1=8E=D1=87=D0=B8?= =?UTF-8?q?=D1=82=D1=8C=20=D1=82=D0=B5=D0=BB=D0=B5=D0=BC=D0=B5=D1=82=D1=80?= =?UTF-8?q?=D0=B8=D1=8E=20PnP:=20=D0=BD=D0=B5=D0=BE=D0=B1=D1=80=D0=B0?= =?UTF-8?q?=D0=B1=D0=BE=D1=82=D0=B0=D0=BD=D0=BD=D1=8B=D0=B9=20=D0=BE=D1=82?= =?UTF-8?q?=D0=BA=D0=B0=D0=B7=20=D0=BF=D1=80=D0=BE=D0=BC=D0=B8=D1=81=D0=B0?= =?UTF-8?q?=20=D0=B2=20=D0=BC=D0=BE=D0=BD=D0=B8=D1=82=D0=BE=D1=80=D0=B8?= =?UTF-8?q?=D0=BD=D0=B3=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @pnp/spfx-controls-react через @pnp/telemetry-js шлёт fetch на pnptelemetryproxy.azurewebsites.net без catch. Где адрес закрыт прокси или блокировщиком, каждый раз «Failed to fetch» и «Необработанный отказ промиса» в логах request-portal. Отключаем её в onInit (optOut), @pnp/telemetry-js — прямой зависимостью той же версии 2.0.0. Co-Authored-By: Claude Opus 5.5 --- package-lock.json | 1 + package.json | 1 + src/webparts/requestPortal/RequestPortalWebPart.ts | 4 ++++ 3 files changed, 6 insertions(+) diff --git a/package-lock.json b/package-lock.json index 3e037eb..040daa7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -17,6 +17,7 @@ "@microsoft/sp-webpart-base": "1.22.1", "@pnp/sp": "^4.20.0", "@pnp/spfx-controls-react": "^3.25.0", + "@pnp/telemetry-js": "2.0.0", "@tnsu/monitoring-web": "^0.3.4", "@tnsu/ui-kit": "^0.15.0", "jszip": "~3.8.0", diff --git a/package.json b/package.json index c596520..96208f0 100644 --- a/package.json +++ b/package.json @@ -21,6 +21,7 @@ "@microsoft/sp-webpart-base": "1.22.1", "@pnp/sp": "^4.20.0", "@pnp/spfx-controls-react": "^3.25.0", + "@pnp/telemetry-js": "2.0.0", "@tnsu/monitoring-web": "^0.3.4", "@tnsu/ui-kit": "^0.15.0", "jszip": "~3.8.0", diff --git a/src/webparts/requestPortal/RequestPortalWebPart.ts b/src/webparts/requestPortal/RequestPortalWebPart.ts index 3a4ea97..725e0db 100644 --- a/src/webparts/requestPortal/RequestPortalWebPart.ts +++ b/src/webparts/requestPortal/RequestPortalWebPart.ts @@ -9,6 +9,7 @@ import { } from '@microsoft/sp-property-pane'; import { BaseClientSideWebPart } from '@microsoft/sp-webpart-base'; import { IReadonlyTheme } from '@microsoft/sp-component-base'; +import PnPTelemetry from '@pnp/telemetry-js'; import { initMonitoring, spfxTokenProvider } from '@tnsu/monitoring-web'; import * as strings from 'RequestPortalWebPartStrings'; @@ -104,6 +105,9 @@ export default class RequestPortalWebPart extends BaseClientSideWebPart