Skip to content

URGENT: Update of sentry dependencies required #271

@mcm1957

Description

@mcm1957

The sentry plugin currently states

    "@sentry/integrations": "^7.55.2",
    "@sentry/node": "^7.55.2",

at pacakge.json (https://github.com/ioBroker/plugin-sentry/blob/f15de95b95fdd466e7a0ea558f3f54efd5e2c8bb/package.json#L40C1-L41C31).

Current sentry version is 10.1.0 whil release 7 is at 7.120.4

Image

Please update dependency to 7.120.4 as soon as possible (see below for reasons)

Updating to 9.x.x or 10.x.x should be evaluated seperatly as these are mojor version updates.


Why is this required?

Release 7.55.x is faulty an can cause crashes.
See Forum https://forum.iobroker.net/topic/81848/probleme-mit-mielecloudservice-adapter
and Issue Grizzelbee/ioBroker.mielecloudservice#507

and also
https://forum.iobroker.net/topic/80035/tester-f%C3%BCr-zigbee-adapter-2-0-x-gesucht/404
https://forum.iobroker.net/topic/29836/mielecloudservice-adapter/798

Adapter crashes with the following stack:

2025-08-04 19:03:54.705 - info: host.ct-iobroker01 "system.adapter.mielecloudservice.1" enabled
2025-08-04 19:03:55.002 - info: host.ct-iobroker01 instance system.adapter.mielecloudservice.1 in version "6.5.10" started with pid 313950
2025-08-04 19:03:55.721 - info: mielecloudservice.1 (313950) starting. Version 6.5.10 in /opt/iobroker/node_modules/iobroker.mielecloudservice, node: v20.19.4, js-controller: 7.0.6
2025-08-04 19:03:55.740 - info: mielecloudservice.1 (313950) Login attempt #1 @Miele-API
2025-08-04 19:03:56.370 - info: mielecloudservice.1 (313950) Access token expires on: 9/3/2025, 7:03:00 PM
2025-08-04 19:03:56.370 - info: mielecloudservice.1 (313950) Registering for all appliance events at Miele API.
2025-08-04 19:03:56.379 - info: mielecloudservice.1 (313950) Initializing SSE watchdog.
2025-08-04 19:03:56.398 - error: mielecloudservice.1 (313950) uncaught exception: request.headers.split is not a function
2025-08-04 19:03:56.398 - error: mielecloudservice.1 (313950) TypeError: request.headers.split is not a function
at setHeadersOnRequest (/opt/iobroker/node_modules/@sentry/src/integrations/undici/index.ts:282:39)
at _onRequestCreate (/opt/iobroker/node_modules/@sentry/src/integrations/undici/index.ts:192:9)
at Channel.publish (node:diagnostics_channel:150:9)
at new Request (node:internal/deps/undici/undici:2008:27)
at Client.[dispatch] (node:internal/deps/undici/undici:7802:25)
at Intercept (node:internal/deps/undici/undici:7535:20)
at Client.[Intercepted Dispatch] (node:internal/deps/undici/undici:572:16)
at Client.dispatch (node:internal/deps/undici/undici:588:44)
at Pool.[dispatch] (node:internal/deps/undici/undici:819:32)
at Pool.[Intercepted Dispatch] (node:internal/deps/undici/undici:565:33)
2025-08-04 19:03:56.398 - error: mielecloudservice.1 (313950) request.headers.split is not a function
2025-08-04 19:03:56.455 - error: host.ct-iobroker01 Caught by controller[0]: TypeError: request.headers.split is not a function
2025-08-04 19:03:56.455 - error: host.ct-iobroker01 Caught by controller[0]: at setHeadersOnRequest (/opt/iobroker/node_modules/@sentry/src/integrations/undici/index.ts:282:39)
2025-08-04 19:03:56.455 - error: host.ct-iobroker01 Caught by controller[0]: at _onRequestCreate (/opt/iobroker/node_modules/@sentry/src/integrations/undici/index.ts:192:9)
2025-08-04 19:03:56.455 - error: host.ct-iobroker01 Caught by controller[0]: at Channel.publish (node:diagnostics_channel:150:9)
2025-08-04 19:03:56.455 - error: host.ct-iobroker01 Caught by controller[0]: at new Request (node:internal/deps/undici/undici:2008:27)
2025-08-04 19:03:56.455 - error: host.ct-iobroker01 Caught by controller[0]: at Client.[dispatch] (node:internal/deps/undici/undici:7802:25)
2025-08-04 19:03:56.455 - error: host.ct-iobroker01 Caught by controller[0]: at Intercept (node:internal/deps/undici/undici:7535:20)
2025-08-04 19:03:56.455 - error: host.ct-iobroker01 Caught by controller[0]: at Client.[Intercepted Dispatch] (node:internal/deps/undici/undici:572:16)
2025-08-04 19:03:56.455 - error: host.ct-iobroker01 Caught by controller[0]: at Client.dispatch (node:internal/deps/undici/undici:588:44)
2025-08-04 19:03:56.455 - error: host.ct-iobroker01 Caught by controller[0]: at Pool.[dispatch] (node:internal/deps/undici/undici:819:32)
2025-08-04 19:03:56.455 - error: host.ct-iobroker01 Caught by controller[0]: at Pool.[Intercepted Dispatch] (node:internal/deps/undici/undici:565:33)
2025-08-04 19:03:56.455 - error: host.ct-iobroker01 instance system.adapter.mielecloudservice.1 terminated with code 1 (JS_CONTROLLER_STOPPED)
2025-08-04 19:03:56.455 - info: host.ct-iobroker01 Restart adapter system.adapter.mielecloudservice.1 because enabled
2025-08-04 19:04:08.881 - info: host.ct-iobroker01 "system.adapter.mielecloudservice.1" disabled

Crash is caused by a bug at sentry which has been fixes with PR getsentry/sentry-javascript#10938.

This PR is integrated into sentry startin with release 7.106.0 dated 7.3.2024 (getsentry/publish#3524, thanks @fernetmenta for searching).

The current situation is that newer installations will work without problems as due to '^7.55.2' dependency the most actual 7.x.x will be installed for NEW installations. But older installations still satisfying 7.55.2 do not get an update.

So raising the dependency at the plugin and creating a new release of the plugin isrequired (in my oppinion with priority). In addition we should ensure that the update is installed in the near future or at least can be installed easily by useres effected by the bug. (The current solution posted at forum to disable sentry is no solution we should promote).

@Apollon77
@foxriver76
@GermanBluefox

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions