-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adapter abstürze #603
Comments
* (theimo1221) Remove mixup of callback and async within same function * (theimo1221) #603 Harden usage of "firstValueFrom"
Nabend @flockinger |
Moin, |
Jetzt mit V5.0.2: 2023-10-26 09:08:41.686 - error: ring.0 (8274) Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). |
@crocri could you take a look as u created HD-Snapshots? |
Sure :-) |
@flockinger had the issues in 5.0.1 which didn't include my hardening changes from yesterday evening here: f1b8300 Here I added the catch, to properly handle existing and upcomming rejections from the ioBroker.ring/src/lib/ownRingCamera.ts Lines 242 to 254 in 7937607
This doesn`t modify the result of the normal resolve. The following snippet is your version (same as 5.0.1) which especially only awaits the ioBroker.ring/src/lib/ownRingCamera.ts Lines 650 to 663 in 9c3591c
In 5.0.2 I tried to log what/why it crashes I added the then/catch cases and processed the result of it, which itself shouldn't change the behaviour wihtin ioBroker.ring/src/lib/ownRingCamera.ts Lines 255 to 268 in 7937607
For me this:
seemed like the result of the livecall wasn't an observable, but it seems more like in @flockinger's case the function is somehow not bundled correctly within his rxjs... What is your opinion on this @crocri ? |
* (theimo1221) #603 Change rxjs import to resolve awkward js build result.
I changed the rxjs import which results in the js build not beeing like this: ioBroker.ring/build/lib/ownRingCamera.js Line 89 in 7937607
But instead like this: ioBroker.ring/build/lib/ownRingCamera.js Line 89 in ffe07a2
Which could resolve the issue for you @flockinger |
Hallo @theimo1221 , 2023-10-27 03:24:50.683 - error: ring.0 (6310) Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). |
* (theimo1221) #603 Add rxjs to normal dependencies instead of dev-dependencies
Hi! |
Hallo,
der Ring Adapter stürzt mir mehrmals täglich ab. Manchmal alle paar Minuten, manchmal mehrere Stunden nicht.
Im Log finde ich dieses:
2023-10-25
09:05:18.874 - error: ring.0 (9419) Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch().2023-10-25 09:05:18.874 - error: ring.0 (9419) unhandled promise rejection: (0 , rxjs_1.firstValueFrom) is not a function
2023-10-25 09:05:18.875 - error: ring.0 (9419) TypeError: (0 , rxjs_1.firstValueFrom) is not a function
at OwnRingCamera.takeHDSnapshot (/opt/iobroker/node_modules/iobroker.ring/build/lib/ownRingCamera.js:519:41)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async OwnRingCamera.conditionalRecording (/opt/iobroker/node_modules/iobroker.ring/build/lib/ownRingCamera.js:780:53)
2023-10-25 09:05:18.875 - error: ring.0 (9419) (0 , rxjs_1.firstValueFrom) is not a function
2023-10-25 09:05:18.877 - info: ring.0 (9419) terminating
2023-10-25 09:05:18.877 - warn: ring.0 (9419) Terminated (UNCAUGHT_EXCEPTION): Without reason
2023-10-25 09:05:19.378 - info: ring.0 (9419)
terminating
jscontroller 5.0.14
Ring 5.0.1
Debian 10 auf Proxmox 7.4-17
The text was updated successfully, but these errors were encountered: