Skip to content
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

Cannot read properties of undefined #46

Closed
crunchip77 opened this issue Feb 28, 2023 · 9 comments
Closed

Cannot read properties of undefined #46

crunchip77 opened this issue Feb 28, 2023 · 9 comments
Labels
bug Something isn't working fixed
Milestone

Comments

@crunchip77
Copy link

seit dem upgrade von v1.1.0 auf v1.2.3 bekommen ich folgende Meldung
`

2023-03-01 00:00:01.003 - error: logparser.0 (2084326) 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-03-01 00:00:01.011 - error: logparser.0 (2084326) unhandled promise rejection: Cannot read properties of undefined (reading 'objArrayGetObjByVal')
2023-03-01 00:00:01.032 - error: logparser.0 (2084326) TypeError: Cannot read properties of undefined (reading 'objArrayGetObjByVal')
at updateTodayYesterday (/opt/iobroker/node_modules/iobroker.logparser/main.js:196:26)
at Timeout. (/opt/iobroker/node_modules/iobroker.logparser/main.js:179:4)
at listOnTimeout (node:internal/timers:569:17)
at processTimers (node:internal/timers:512:7)
2023-03-01 00:00:01.033 - error: logparser.0 (2084326) Cannot read properties of undefined (reading 'objArrayGetObjByVal')

2023-03-01 00:00:01.336 - info: logparser.0 (2084326) cleaned everything up...

2023-03-01 00:00:01.337 - info: logparser.0 (2084326) terminating
2023-03-01 00:00:01.339 - warn: logparser.0 (2084326) Terminated (UNCAUGHT_EXCEPTION): Without reason

2023-03-01 00:00:02.843 - info: logparser.0 (2084326) terminating with timeout

2023-03-01 00:00:08.142 - error: host.IoBroker Caught by controller[0]: 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(). The promise rejected with the reason:

2023-03-01 00:00:08.143 - error: host.IoBroker Caught by controller[0]: TypeError: Cannot read properties of undefined (reading 'objArrayGetObjByVal')
2023-03-01 00:00:08.143 - error: host.IoBroker Caught by controller[0]: at updateTodayYesterday (/opt/iobroker/node_modules/iobroker.logparser/main.js:196:26)
2023-03-01 00:00:08.144 - error: host.IoBroker Caught by controller[0]: at Timeout. (/opt/iobroker/node_modules/iobroker.logparser/main.js:179:4)
2023-03-01 00:00:08.144 - error: host.IoBroker Caught by controller[0]: at listOnTimeout (node:internal/timers:569:17)
2023-03-01 00:00:08.144 - error: host.IoBroker Caught by controller[0]: at processTimers (node:internal/timers:512:7)
2023-03-01 00:00:08.145 - error: host.IoBroker instance system.adapter.logparser.0 terminated with code 6 (UNCAUGHT_EXCEPTION)
2023-03-01 00:00:08.146 - info: host.IoBroker Restart adapter system.adapter.logparser.0 because enabled

2023-03-01 00:00:43.863 - info: logparser.0 (2683336) starting. Version 1.2.3 in /opt/iobroker/node_modules/iobroker.logparser, node: v18.14.1, js-controller: 4.0.24`
@ciddi89 ciddi89 added the bug Something isn't working label Mar 1, 2023
@ciddi89 ciddi89 self-assigned this Mar 1, 2023
@ciddi89
Copy link
Contributor

ciddi89 commented Mar 1, 2023

Kannst du mal die Github version installieren (Experten Modus, Katze, Link einfügen) Und mir dann schreiben was er dann sagt?
Ich danke dir schon mal

@crunchip77
Copy link
Author

crunchip77 commented Mar 1, 2023

@ciddi89 mach ich
ja unter parser rules(filter) ist einiges eingetragen/aktiv

@crunchip77
Copy link
Author

@ciddi89
`

logparser.0 2023-03-02 00:00:44.669 info starting. Version 1.2.3 (non-npm: iobroker-community-adapters/ioBroker.logparser#ec5fbdf0686701a9003b69b992bf5fc7e1c42a7d) in /opt/iobroker/node_modules/iobroker.logparser, node: v18.14.1, js-controller: 4.0.24
host.IoBroker 2023-03-02 00:00:39.130 info instance system.adapter.logparser.0 started with pid 3303536
host.IoBroker 2023-03-02 00:00:36.542 info instance system.adapter.ical.0 terminated with code 0 (NO_ERROR)
host.IoBroker 2023-03-02 00:00:29.512 info instance system.adapter.feiertage.0 terminated with code 0 (NO_ERROR)
host.IoBroker 2023-03-02 00:00:12.672 info instance system.adapter.unifi.0 started with pid 3303318
host.IoBroker 2023-03-02 00:00:12.322 info instance system.adapter.feiertage.0 started with pid 3303311
host.IoBroker 2023-03-02 00:00:08.430 info Restart adapter system.adapter.logparser.0 because enabled
host.IoBroker 2023-03-02 00:00:08.429 error instance system.adapter.logparser.0 terminated with code 6 (UNCAUGHT_EXCEPTION)
host.IoBroker 2023-03-02 00:00:08.429 error Caught by controller[0]: at processTimers (node:internal/timers:512:7)
host.IoBroker 2023-03-02 00:00:08.428 error Caught by controller[0]: at listOnTimeout (node:internal/timers:569:17)
host.IoBroker 2023-03-02 00:00:08.427 error Caught by controller[0]: at Timeout. (/opt/iobroker/node_modules/iobroker.logparser/main.js:179:4)
host.IoBroker 2023-03-02 00:00:08.427 error Caught by controller[0]: at updateTodayYesterday (/opt/iobroker/node_modules/iobroker.logparser/main.js:196:26)
host.IoBroker 2023-03-02 00:00:08.426 error Caught by controller[0]: TypeError: Cannot read properties of undefined (reading 'objArrayGetObjByVal')
host.IoBroker 2023-03-02 00:00:08.425 error Caught by controller[0]: 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(). The promise rejected with the reason:
host.IoBroker 2023-03-02 00:00:06.530 info Restart adapter system.adapter.unifi.0 because enabled
host.IoBroker 2023-03-02 00:00:06.529 info instance system.adapter.unifi.0 scheduled normal terminated and will be restarted on schedule.
host.IoBroker 2023-03-02 00:00:06.361 info instance system.adapter.ical.0 started with pid 3303287
logparser.0 2023-03-02 00:00:02.316 warn Terminated (UNCAUGHT_EXCEPTION): Without reason
logparser.0 2023-03-02 00:00:02.314 info terminating
logparser.0 2023-03-02 00:00:02.312 info cleaned everything up...
logparser.0 2023-03-02 00:00:01.021 error Cannot read properties of undefined (reading 'objArrayGetObjByVal')
logparser.0 2023-03-02 00:00:01.020 error TypeError: Cannot read properties of undefined (reading 'objArrayGetObjByVal') at updateTodayYesterday (/opt/iobroker/node_modules/iobroker.logparser/main.js:196:26) at Timeout. (/opt/iobroker/node_modules/iobroker.logparser/main.js:179:4) at listOnTimeout (node:internal/timers:569:17) at processTimers (node:internal/timers:512:7)
logparser.0 2023-03-02 00:00:01.012 error unhandled promise rejection: Cannot read properties of undefined (reading 'objArrayGetObjByVal')
logparser.0 2023-03-02 00:00:01.002 error 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().
`

@ciddi89
Copy link
Contributor

ciddi89 commented Mar 1, 2023

Ist das immer um 0 Uhr? Aber sonst läuft der Adapter oder?

//Edit: frage konnte ich mir selbst beantworten. Werde versuchen es in den nächsten Tagen zu fixen.

ciddi89 added a commit that referenced this issue Mar 2, 2023
@ciddi89
Copy link
Contributor

ciddi89 commented Mar 2, 2023

Ok den Fehler spuckt er nicht mehr aus, das ist erstmal beseitigt. Kannst das gerne noch mal mit der Katzen Version testen. Muss mir das aber noch mal genauer angucken, daher bitte diesen thread nicht schliessen. :)

@crunchip77
Copy link
Author

Ist das immer um 0 Uhr? Aber sonst läuft der Adapter oder?

ja

Kannst das gerne noch mal mit der Katzen Version testen.

mach ich

@mcm1957 mcm1957 added this to the Release 1.2.x fixes milestone Mar 2, 2023
@crunchip77
Copy link
Author

@ciddi89 Log blieb heute sauber , keine Fehlermeldung

@mcm1957
Copy link
Member

mcm1957 commented Mar 3, 2023

Sollte damit oin 2.0.0 behoben sein

ciddi89 added a commit that referenced this issue Mar 5, 2023
-   (ciddi89) Added: [#24](#24) Option to remove 'COMPACT' in log entries
-   (ciddi89) Added: [#21](#21) Option to remove only 'script.js' in log entries
-   (ciddi89) Fixed: [#46](#46) Midnight function to change today/yesterday
-   (ciddi89) Fixed: [#23](#23) When nothing selected in blacklist, adapter didn't work anymore
-   (ciddi89) Other: Small code and translation improvements
@ciddi89
Copy link
Contributor

ciddi89 commented Mar 5, 2023

Fixed in 2.1.0

@ciddi89 ciddi89 closed this as completed Mar 5, 2023
@mcm1957 mcm1957 removed the in Test label Mar 5, 2023
@mcm1957 mcm1957 modified the milestones: Release 2.0.x, Release 2.1.x Mar 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fixed
Projects
None yet
Development

No branches or pull requests

3 participants