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

Error in 2.0.0 and 2.0.1 #114

Closed
ahartman opened this issue Dec 22, 2021 · 18 comments
Closed

Error in 2.0.0 and 2.0.1 #114

ahartman opened this issue Dec 22, 2021 · 18 comments
Assignees
Labels
bug Something isn't working

Comments

@ahartman
Copy link

Dear Benjamin,

I updated this morning to 2.0.0 and got "Error: no data" instead of events.
Then I noticed a newer 2.0.1 and installed that version, no error any more but also no incoming events.
I went to all the way back to 1.5.0 after that and also no events.
Any ideas?

Regards, ahartman, belgium

@ahartman ahartman added the bug Something isn't working label Dec 22, 2021
@naimo84
Copy link
Owner

naimo84 commented Dec 22, 2021

Oh no André 😐 I have no idea, what's going wrong with the iCloud Part of my kalender-events lib 😐

May you try v1.5.2 please?

@naimo84
Copy link
Owner

naimo84 commented Dec 22, 2021

I did a quick test with both (2.0.0 and 2.0.1). Both are working locally and the unit test in the github action also seems to work...

I will discontinue my work with ical events.... Every version something else is broken :/

You can send me a debug log, like described here: https://naimo84.github.io/node-red-contrib-ical-events/guide/debug.html

@naimo84
Copy link
Owner

naimo84 commented Dec 22, 2021

It's really really strange. It tested it with 4 node-red installations with some combinations of node-red version, nodejs version and ical-events version. All seems to be ok.... So one way will be the debug log. Sorry for the inconveniences.

@naimo84
Copy link
Owner

naimo84 commented Dec 22, 2021

A type of undocumented feature of my lib kalender-events is a cli interface. Perhaps you may try this also?

DEBUG=kalender-events* npx kalender-events@0.23.0  upcoming --type icloud  --preview P10D --pastview P10D --url **https://p51-caldav.icloud.com/123456789/calendars/home/**  --username **andre@example.com** --password **abcd-efgh-ijkl-mnop** 

The only occurrence of throw new Error("No data") is directly after the request call of 'https://p51-caldav.icloud.com/123456789/calendars/home/'. This means it's something wrong with the icloud request. Wrong url, username or password...

@ahartman
Copy link
Author

ahartman commented Dec 22, 2021 via email

@ahartman
Copy link
Author

ahartman commented Dec 23, 2021

Benjamin,

First I checked that there is a valid events on 2" December.
I used your DEBUG trick in settings.js and the result is below for version 2.0.2:

Welcome to Node-RED

23 Dec 07:12:35 - [info] Node-RED version: v2.1.4
23 Dec 07:12:35 - [info] Node.js version: v14.18.2
23 Dec 07:12:35 - [info] Linux 5.10.63-v7+ arm LE
23 Dec 07:12:36 - [info] Loading palette nodes
23 Dec 07:12:37 - [debug] Module: node-red-contrib-controltimer 0.1.0 /home/pi/.node-red/node_modules/node-red-contrib-controltimer
23 Dec 07:12:37 - [debug] Module: node-red-contrib-homekit-bridged 1.4.3 /home/pi/.node-red/node_modules/node-red-contrib-homekit-bridged
23 Dec 07:12:37 - [debug] Module: node-red-contrib-ical-events 2.0.2 /home/pi/.node-red/node_modules/node-red-contrib-ical-events
23 Dec 07:12:37 - [debug] Module: node-red-contrib-ikea-tradfri 0.5.0 /home/pi/.node-red/node_modules/node-red-contrib-ikea-tradfri
23 Dec 07:12:37 - [debug] Module: node-red-contrib-shelly 3.4.0 /home/pi/.node-red/node_modules/node-red-contrib-shelly
23 Dec 07:12:37 - [debug] Module: node-red-contrib-sun-position 2.0.6 /home/pi/.node-red/node_modules/node-red-contrib-sun-position
23 Dec 07:12:37 - [debug] Module: node-red-contrib-suncron 1.6.1 /home/pi/.node-red/node_modules/node-red-contrib-suncron
23 Dec 07:12:37 - [debug] Module: node-red-dashboard 3.1.2 /home/pi/.node-red/node_modules/node-red-dashboard
23 Dec 07:12:37 - [debug] Module: node-red-node-pi-gpio 2.0.1 /home/pi/.node-red/node_modules/node-red-node-pi-gpio
Initializing HAP-NodeJS v0.9.6...
23 Dec 07:12:42 - [info] Dashboard version 3.1.2 started at /ui
23 Dec 07:12:43 - [trace] utils.writeFile - copied /home/pi/.node-red/.config.nodes.json TO /home/pi/.node-red/.config.nodes.json.backup
23 Dec 07:12:43 - [trace] utils.writeFile - written content to /home/pi/.node-red/.config.nodes.json.$$$
23 Dec 07:12:43 - [trace] utils.writeFile - renamed /home/pi/.node-red/.config.nodes.json.$$$ to /home/pi/.node-red/.config.nodes.json
23 Dec 07:12:43 - [info] Settings file : /home/pi/.node-red/settings.js
23 Dec 07:12:43 - [info] Context store : 'default' [module=localfilesystem]
23 Dec 07:12:43 - [info] User directory : /home/pi/.node-red
23 Dec 07:12:43 - [info] Projects directory: /home/pi/.node-red/projects
23 Dec 07:12:43 - [trace] git["remote","-v"]
23 Dec 07:12:43 - [trace] git["rev-list","HEAD","--count"]
23 Dec 07:12:43 - [info] Server now running at http://127.0.0.1:1880/
23 Dec 07:12:43 - [trace] git["ls-files","--cached","--others","--exclude-standard"]
23 Dec 07:12:43 - [trace] git["status","--porcelain","-b"]
23 Dec 07:12:43 - [info] Active project : Homekit
23 Dec 07:12:43 - [info] Flows file : /home/pi/.node-red/projects/Homekit/flow.json
23 Dec 07:12:43 - [debug] loaded flow revision: 2017f29b6b36ccfb5ca51bee55d7e329
23 Dec 07:12:43 - [debug] red/runtime/nodes/credentials.load : using active project key - disabled
23 Dec 07:12:43 - [debug] red/runtime/nodes/credentials.load : keyType=disabled
23 Dec 07:12:43 - [trace] runtime event: {"id":"runtime-state","retain":true}
23 Dec 07:12:43 - [trace] runtime event: {"id":"runtime-deploy","payload":{"revision":"2017f29b6b36ccfb5ca51bee55d7e329"},"retain":true}
23 Dec 07:12:43 - [info] Starting flows
23 Dec 07:12:43 - [debug] red/nodes/flows.start : starting flow : global
23 Dec 07:12:43 - [debug] red/nodes/flows.start : starting flow : af688e5.b55d57
23 Dec 07:12:43 - [debug] red/nodes/flows.start : starting flow : eeb0c954.d943d
23 Dec 07:12:43 - [debug] red/nodes/flows.start : starting flow : ef737c5d.8fdfe
23 Dec 07:12:43 - [debug] red/nodes/flows.start : starting flow : b798ba0e.5afac8
23 Dec 07:12:43 - [debug] red/nodes/flows.start : starting flow : ac61d6b63edc7d80
23 Dec 07:12:43 - [debug] red/nodes/flows.start : starting flow : 8de679a753371272
23 Dec 07:12:43 - [trace] [flow:global] start flow [global]
23 Dec 07:12:43 - [trace] [flow:global] ------------------|--------------|-----------------
23 Dec 07:12:43 - [trace] [flow:global] id | type | alias
23 Dec 07:12:43 - [trace] [flow:global] ------------------|--------------|-----------------
23 Dec 07:12:43 - [trace] [flow:global] 7b789b02.b3d6e4 | position-config |
23 Dec 07:12:43 - [trace] [flow:global] 61506dc1.940954 | ical-config |
23 Dec 07:12:43 - [trace] [flow:global] 3e48c330.8414ec | ical-config |
23 Dec 07:12:43 - [trace] [flow:global] 3a720637.38a402 | tradfri-config |
23 Dec 07:12:43 - [trace] [flow:global] 409001a1.3e7a78 | homekit-bridge |
23 Dec 07:12:43 - [trace] [flow:global] 117d334b145a0072 | tradfri-config |
23 Dec 07:12:43 - [trace] [flow:global] ------------------|--------------|-----------------
23 Dec 07:12:43 - [trace] [flow:af688e5.b55d57] start flow [af688e5.b55d57]
23 Dec 07:12:44 - [trace] [flow:af688e5.b55d57] ------------------|--------------|-----------------
23 Dec 07:12:44 - [trace] [flow:af688e5.b55d57] id | type | alias
23 Dec 07:12:44 - [trace] [flow:af688e5.b55d57] ------------------|--------------|-----------------
23 Dec 07:12:44 - [trace] [flow:af688e5.b55d57] 8c783443.62489 | inject |
23 Dec 07:12:44 - [trace] [flow:af688e5.b55d57] acc78091.ea4ed | sun-position |
23 Dec 07:12:44 - [trace] [flow:af688e5.b55d57] c1cb07db.8f1bf8 | change |
23 Dec 07:12:44 - [trace] [flow:af688e5.b55d57] fe9a3513.4fbe68 | debug |
23 Dec 07:12:44 - [trace] [flow:af688e5.b55d57] 8a2d9888.d39c1 | inject |
23 Dec 07:12:44 - [trace] [flow:af688e5.b55d57] 72415e18dc28ead0 | inject |
23 Dec 07:12:44 - [trace] [flow:af688e5.b55d57] 3130e6f150af0d5d | inject |
23 Dec 07:12:44 - [trace] [flow:af688e5.b55d57] 9aac430f6643bd61 | suncron |
23 Dec 07:12:44 - [trace] [flow:af688e5.b55d57] 38d971fb1f7b5524 | change |
23 Dec 07:12:44 - [trace] [flow:af688e5.b55d57] 2b9a42b5d908a3a1 | function |
23 Dec 07:12:44 - [trace] [flow:af688e5.b55d57] bdc7e902b18cec4f | debug |
23 Dec 07:12:44 - [trace] [flow:af688e5.b55d57] a76d2327be262b28 | tradfri-light-control |
23 Dec 07:12:44 - [trace] [flow:af688e5.b55d57] d0523348203eaa10 | link out |
23 Dec 07:12:44 - [trace] [flow:af688e5.b55d57] 380228a5c9d8cfb0 | function |
23 Dec 07:12:44 - [trace] [flow:af688e5.b55d57] ------------------|--------------|-----------------
23 Dec 07:12:44 - [trace] [flow:eeb0c954.d943d] start flow [eeb0c954.d943d]
23 Dec 07:12:44 - [trace] [flow:eeb0c954.d943d] ------------------|--------------|-----------------
23 Dec 07:12:44 - [trace] [flow:eeb0c954.d943d] id | type | alias
23 Dec 07:12:44 - [trace] [flow:eeb0c954.d943d] ------------------|--------------|-----------------
23 Dec 07:12:44 - [trace] [flow:eeb0c954.d943d] 3c15aea6.9ea51a | inject |
23 Dec 07:12:44 - [trace] [flow:eeb0c954.d943d] 81f98c70.b0533 | within-time-switch |
23 Dec 07:12:44 - [trace] [flow:eeb0c954.d943d] 839b7938.f219f8 | switch |
23 Dec 07:12:44 - [trace] [flow:eeb0c954.d943d] b42b2b12.faf3b | switch |
23 Dec 07:12:44 - [trace] [flow:eeb0c954.d943d] e9ecbbb.f2dd548 | inject |
23 Dec 07:12:44 - [trace] [flow:eeb0c954.d943d] 77b7e9a7.922b6 | ical-upcoming |
23 Dec 07:12:44 - [trace] [flow:eeb0c954.d943d] 12a621d4.d53bae | function |
23 Dec 07:12:44 - [trace] [flow:eeb0c954.d943d] 511165e0.f6f50c | ical-upcoming |
23 Dec 07:12:44 - [trace] [flow:eeb0c954.d943d] fe44fb82.fb735 | function |
23 Dec 07:12:44 - [trace] [flow:eeb0c954.d943d] a03fe1f0.0fa3d | within-time-switch |
23 Dec 07:12:44 - [trace] [flow:eeb0c954.d943d] 960f1791.6227d8 | link out |
23 Dec 07:12:44 - [trace] [flow:eeb0c954.d943d] 959c576d.3ff368 | link out |
23 Dec 07:12:44 - [trace] [flow:eeb0c954.d943d] 950b4130.80c738 | link in |
23 Dec 07:12:44 - [trace] [flow:eeb0c954.d943d] 4c86ca86.4fb114 | within-time-switch |
23 Dec 07:12:44 - [trace] [flow:eeb0c954.d943d] 1b5162ad.0b52ed | link out |
23 Dec 07:12:44 - [trace] [flow:eeb0c954.d943d] 045d670617a3927f | rbe |
23 Dec 07:12:44 - [trace] [flow:eeb0c954.d943d] 98f26ade7c11a000 | rbe |
23 Dec 07:12:44 - [trace] [flow:eeb0c954.d943d] 4d682791da068be5 | change |
23 Dec 07:12:44 - [trace] [flow:eeb0c954.d943d] 85ca14534b786f38 | rbe |
23 Dec 07:12:44 - [trace] [flow:eeb0c954.d943d] dd3dde2108dfccc9 | change |
23 Dec 07:12:44 - [trace] [flow:eeb0c954.d943d] 8e125b71de7e8d9a | change |
23 Dec 07:12:44 - [trace] [flow:eeb0c954.d943d] d47d72d0efa89966 | debug |
23 Dec 07:12:44 - [trace] [flow:eeb0c954.d943d] d1568b5c30e7a968 | debug |
23 Dec 07:12:44 - [trace] [flow:eeb0c954.d943d] 7810f8e1.33dc3 | change |
23 Dec 07:12:44 - [trace] [flow:eeb0c954.d943d] 36e06774.d6558 | link in |
23 Dec 07:12:44 - [trace] [flow:eeb0c954.d943d] 58f463f9.95ee4c | link in |
23 Dec 07:12:44 - [trace] [flow:eeb0c954.d943d] 84c468d3.76f4b8 | function |
23 Dec 07:12:44 - [trace] [flow:eeb0c954.d943d] e121d94a.a91018 | change |
23 Dec 07:12:44 - [trace] [flow:eeb0c954.d943d] fc0d87bf.ee945 | link in |
23 Dec 07:12:44 - [trace] [flow:eeb0c954.d943d] 79c32f4147ac5745 | shelly-switch |
23 Dec 07:12:44 - [trace] [flow:eeb0c954.d943d] 00bd2845c3ba6c13 | shelly-switch |
23 Dec 07:12:44 - [trace] [flow:eeb0c954.d943d] bde0ce574993afcb | shelly-switch |
23 Dec 07:12:44 - [trace] [flow:eeb0c954.d943d] 76347eaadd44c2fe | shelly-switch |
23 Dec 07:12:44 - [trace] [flow:eeb0c954.d943d] 77f62f7fc178e4a5 | debug |
23 Dec 07:12:44 - [trace] [flow:eeb0c954.d943d] cd39465bfd6257c7 | debug |
23 Dec 07:12:44 - [trace] [flow:eeb0c954.d943d] 9afd69f7db153537 | debug |
23 Dec 07:12:44 - [trace] [flow:eeb0c954.d943d] ce93c3d714c6b42f | debug |
23 Dec 07:12:44 - [trace] [flow:eeb0c954.d943d] 332873d8e2eb8576 | debug |
23 Dec 07:12:44 - [trace] [flow:eeb0c954.d943d] 68c7de62fc4d56a7 | switch |
23 Dec 07:12:44 - [trace] [flow:eeb0c954.d943d] 2a55e4ed1dd3fb01 | function |
23 Dec 07:12:44 - [trace] [flow:eeb0c954.d943d] 6f8d93bcc0faf9b6 | tradfri-light-control |
23 Dec 07:12:44 - [trace] [flow:eeb0c954.d943d] 44bb3a85cd825e38 | inject |
23 Dec 07:12:44 - [trace] [flow:eeb0c954.d943d] e78e1db12eb606e0 | debug |
23 Dec 07:12:44 - [trace] [flow:eeb0c954.d943d] ------------------|--------------|-----------------
23 Dec 07:12:44 - [trace] [flow:ef737c5d.8fdfe] start flow [ef737c5d.8fdfe]
23 Dec 07:12:44 - [trace] [subflow:b849cdcd.7fe5c] start subflow [ef737c5d.8fdfe/b849cdcd.7fe5c]
23 Dec 07:12:44 - [trace] [subflow:b849cdcd.7fe5c] ------------------|--------------|-----------------
23 Dec 07:12:44 - [trace] [subflow:b849cdcd.7fe5c] id | type | alias
23 Dec 07:12:44 - [trace] [subflow:b849cdcd.7fe5c] ------------------|--------------|-----------------
23 Dec 07:12:44 - [trace] [subflow:b849cdcd.7fe5c] 7b17bbf78c1334ab | delay | fd5b71cd.f759d
23 Dec 07:12:44 - [trace] [subflow:b849cdcd.7fe5c] 95a42e2327f0fc56 | function | a38e848f.39acd8
23 Dec 07:12:44 - [trace] [subflow:b849cdcd.7fe5c] 3039bc5a25efc91f | tradfri-light-control | 7302852c.5e9e84
23 Dec 07:12:44 - [trace] [subflow:b849cdcd.7fe5c] bfce461c5d7270dd | tradfri-light-control | 994c6b54.5d27c8
23 Dec 07:12:44 - [trace] [subflow:b849cdcd.7fe5c] 50bedc17577f16d9 | rbe | b0e14dcefa658091
23 Dec 07:12:44 - [trace] [subflow:b849cdcd.7fe5c] 8ca7264e28772c97 | switch | a0be59d028282e91
23 Dec 07:12:44 - [trace] [subflow:b849cdcd.7fe5c] 042256450398d9df | debug | 2e1515e95cf7174a
23 Dec 07:12:44 - [trace] [subflow:b849cdcd.7fe5c] df8d8756181b686f | change | 52799f7f7e75939f
23 Dec 07:12:44 - [trace] [subflow:b849cdcd.7fe5c] 3c42cadc943b31b3 | tradfri-light-control | 355e367fa158c3be
23 Dec 07:12:44 - [trace] [subflow:b849cdcd.7fe5c] 87cbd763c34e9f1e | tradfri-light-control | 70e5b7b5463b48c2
23 Dec 07:12:44 - [trace] [subflow:b849cdcd.7fe5c] 6da6e1fada145861 | delay | e99f9c4f90b30509
23 Dec 07:12:44 - [trace] [subflow:b849cdcd.7fe5c] ------------------|--------------|-----------------
23 Dec 07:12:44 - [trace] [flow:ef737c5d.8fdfe] ------------------|--------------|-----------------
23 Dec 07:12:44 - [trace] [flow:ef737c5d.8fdfe] id | type | alias
23 Dec 07:12:44 - [trace] [flow:ef737c5d.8fdfe] ------------------|--------------|-----------------
23 Dec 07:12:44 - [trace] [flow:ef737c5d.8fdfe] e53221d8.864cd | function |
23 Dec 07:12:44 - [trace] [flow:ef737c5d.8fdfe] b849cdcd.7fe5c | subflow:7535b2d2.99fc5c |
23 Dec 07:12:44 - [trace] [flow:ef737c5d.8fdfe] 229c3de4.f3d552 | comment |
23 Dec 07:12:44 - [trace] [flow:ef737c5d.8fdfe] 7ec5bf43.163b4 | sun-position |
23 Dec 07:12:44 - [trace] [flow:ef737c5d.8fdfe] 2ca65b5f.b4ea04 | inject |
23 Dec 07:12:44 - [trace] [flow:ef737c5d.8fdfe] f8c88755.5dcc58 | function |
23 Dec 07:12:44 - [trace] [flow:ef737c5d.8fdfe] d982241b.ffa208 | debug |
23 Dec 07:12:44 - [trace] [flow:ef737c5d.8fdfe] a09f1f3b66defb01 | debug |
23 Dec 07:12:44 - [trace] [flow:ef737c5d.8fdfe] 340b392b64f4cd92 | comment |
23 Dec 07:12:44 - [trace] [flow:ef737c5d.8fdfe] bc355bf81279e6d8 | tradfri-monitor |
23 Dec 07:12:44 - [trace] [flow:ef737c5d.8fdfe] 8d80ed1299f0421c | function |
23 Dec 07:12:44 - [trace] [flow:ef737c5d.8fdfe] d530536dd765892b | switch |
23 Dec 07:12:44 - [trace] [flow:ef737c5d.8fdfe] 9004f0597913e647 | debug |
23 Dec 07:12:44 - [trace] [flow:ef737c5d.8fdfe] d99375d0610c55b3 | join |
23 Dec 07:12:44 - [trace] [flow:ef737c5d.8fdfe] 9dbd8fba6c17f8b8 | change |
23 Dec 07:12:44 - [trace] [flow:ef737c5d.8fdfe] e8d02cba847d5740 | link in |
23 Dec 07:12:44 - [trace] [flow:ef737c5d.8fdfe] 18f48d3f47284108 | tradfri-monitor |
23 Dec 07:12:44 - [trace] [flow:ef737c5d.8fdfe] ------------------|--------------|-----------------
23 Dec 07:12:44 - [trace] [flow:b798ba0e.5afac8] start flow [b798ba0e.5afac8]
23 Dec 07:12:44 - [trace] [subflow:6a6fe1bad5cb96b6] start subflow [b798ba0e.5afac8/6a6fe1bad5cb96b6]
23 Dec 07:12:44 - [trace] [subflow:6a6fe1bad5cb96b6] ------------------|--------------|-----------------
23 Dec 07:12:44 - [trace] [subflow:6a6fe1bad5cb96b6] id | type | alias
23 Dec 07:12:44 - [trace] [subflow:6a6fe1bad5cb96b6] ------------------|--------------|-----------------
23 Dec 07:12:44 - [trace] [subflow:6a6fe1bad5cb96b6] 24e7f74eaa267bb7 | delay | fd5b71cd.f759d
23 Dec 07:12:44 - [trace] [subflow:6a6fe1bad5cb96b6] ae5b15d04ca5ca63 | function | a38e848f.39acd8
23 Dec 07:12:44 - [trace] [subflow:6a6fe1bad5cb96b6] 2e73d6a7f1546376 | tradfri-light-control | 7302852c.5e9e84
23 Dec 07:12:44 - [trace] [subflow:6a6fe1bad5cb96b6] 97cd2ea0db6854fc | tradfri-light-control | 994c6b54.5d27c8
23 Dec 07:12:44 - [trace] [subflow:6a6fe1bad5cb96b6] 8dc3d5761fa82965 | rbe | b0e14dcefa658091
23 Dec 07:12:44 - [trace] [subflow:6a6fe1bad5cb96b6] e5dd2284582c77e1 | switch | a0be59d028282e91
23 Dec 07:12:44 - [trace] [subflow:6a6fe1bad5cb96b6] c46a2fd7e8f2251a | debug | 2e1515e95cf7174a
23 Dec 07:12:44 - [trace] [subflow:6a6fe1bad5cb96b6] 3587e96aaac20c65 | change | 52799f7f7e75939f
23 Dec 07:12:44 - [trace] [subflow:6a6fe1bad5cb96b6] 4de69e64912ecbc1 | tradfri-light-control | 355e367fa158c3be
23 Dec 07:12:44 - [trace] [subflow:6a6fe1bad5cb96b6] ac6f61aef0f84126 | tradfri-light-control | 70e5b7b5463b48c2
23 Dec 07:12:44 - [trace] [subflow:6a6fe1bad5cb96b6] 448681932b568e2c | delay | e99f9c4f90b30509
23 Dec 07:12:44 - [trace] [subflow:6a6fe1bad5cb96b6] ------------------|--------------|-----------------
23 Dec 07:12:44 - [trace] [flow:b798ba0e.5afac8] ------------------|--------------|-----------------
23 Dec 07:12:44 - [trace] [flow:b798ba0e.5afac8] id | type | alias
23 Dec 07:12:44 - [trace] [flow:b798ba0e.5afac8] ------------------|--------------|-----------------
23 Dec 07:12:44 - [trace] [flow:b798ba0e.5afac8] 3b2aad13.91b0a2 | comment |
23 Dec 07:12:44 - [trace] [flow:b798ba0e.5afac8] 3019eb30.7e9084 | inject |
23 Dec 07:12:44 - [trace] [flow:b798ba0e.5afac8] fc1658fa.e1f1a8 | inject |
23 Dec 07:12:44 - [trace] [flow:b798ba0e.5afac8] f11f1529.85d2a8 | debug |
23 Dec 07:12:44 - [trace] [flow:b798ba0e.5afac8] a94048ec.49bee8 | function |
23 Dec 07:12:44 - [trace] [flow:b798ba0e.5afac8] 171cf7f2a7932d8a | link out |
23 Dec 07:12:44 - [trace] [flow:b798ba0e.5afac8] 6a6fe1bad5cb96b6 | subflow:7535b2d2.99fc5c |
23 Dec 07:12:44 - [trace] [flow:b798ba0e.5afac8] 88041695d73b27b2 | comment |
23 Dec 07:12:44 - [trace] [flow:b798ba0e.5afac8] b6fcec1d94b1525f | tradfri-light-control |
23 Dec 07:12:44 - [trace] [flow:b798ba0e.5afac8] c02b8097e0b70dfa | controltimer |
23 Dec 07:12:44 - [trace] [flow:b798ba0e.5afac8] 1b760319ddee3c3c | switch |
23 Dec 07:12:44 - [trace] [flow:b798ba0e.5afac8] c19a00a015eea7c6 | change |
23 Dec 07:12:44 - [trace] [flow:b798ba0e.5afac8] d5fbba0957479bda | change |
23 Dec 07:12:44 - [trace] [flow:b798ba0e.5afac8] f087c13023d174e4 | change |
23 Dec 07:12:44 - [trace] [flow:b798ba0e.5afac8] 889e5fac89883990 | tradfri-light-control |
23 Dec 07:12:44 - [trace] [flow:b798ba0e.5afac8] ad5444e4b39970ed | function |
23 Dec 07:12:44 - [trace] [flow:b798ba0e.5afac8] 46a54e831354560a | function |
23 Dec 07:12:44 - [trace] [flow:b798ba0e.5afac8] c3b58990b5a05f1b | rpi-gpio in |
23 Dec 07:12:44 - [trace] [flow:b798ba0e.5afac8] 9dfed8264b67b348 | debug |
23 Dec 07:12:44 - [trace] [flow:b798ba0e.5afac8] 4470c5a21720e20c | function |
23 Dec 07:12:44 - [trace] [flow:b798ba0e.5afac8] 7e4881a932abecf2 | function |
23 Dec 07:12:44 - [trace] [flow:b798ba0e.5afac8] 7d20fc15db9a8658 | function |
23 Dec 07:12:44 - [trace] [flow:b798ba0e.5afac8] 2e2c9b336848af0c | function |
23 Dec 07:12:44 - [trace] [flow:b798ba0e.5afac8] 8a91d24af12764d5 | debug |
23 Dec 07:12:44 - [trace] [flow:b798ba0e.5afac8] ------------------|--------------|-----------------
23 Dec 07:12:44 - [trace] [flow:ac61d6b63edc7d80] start flow [ac61d6b63edc7d80]
23 Dec 07:12:44 - [trace] [flow:ac61d6b63edc7d80] ------------------|--------------|-----------------
23 Dec 07:12:44 - [trace] [flow:ac61d6b63edc7d80] id | type | alias
23 Dec 07:12:44 - [trace] [flow:ac61d6b63edc7d80] ------------------|--------------|-----------------
23 Dec 07:12:44 - [trace] [flow:ac61d6b63edc7d80] ab79988be2241e31 | homekit-service |
23 Dec 07:12:44 - [trace] [flow:ac61d6b63edc7d80] cf158bd224a84ae4 | inject |
23 Dec 07:12:44 - [trace] [flow:ac61d6b63edc7d80] 200e97d616d139f2 | inject |
23 Dec 07:12:44 - [trace] [flow:ac61d6b63edc7d80] 120e953ab7375f77 | debug |
23 Dec 07:12:44 - [trace] [flow:ac61d6b63edc7d80] 4c15d28aac408723 | inject |
23 Dec 07:12:44 - [trace] [flow:ac61d6b63edc7d80] de23e2e4d966a81d | inject |
23 Dec 07:12:44 - [trace] [flow:ac61d6b63edc7d80] 011a13273f3a770e | homekit-service |
23 Dec 07:12:44 - [trace] [flow:ac61d6b63edc7d80] 948aff05f39477c4 | inject |
23 Dec 07:12:44 - [trace] [flow:ac61d6b63edc7d80] 0de4b20b1f6c9191 | inject |
23 Dec 07:12:44 - [trace] [flow:ac61d6b63edc7d80] f6b0fb33851499cd | homekit-service |
23 Dec 07:12:44 - [trace] [flow:ac61d6b63edc7d80] 168005e3096ff9f4 | change |
23 Dec 07:12:44 - [trace] [flow:ac61d6b63edc7d80] 55d857d8c1498330 | change |
23 Dec 07:12:44 - [trace] [flow:ac61d6b63edc7d80] 25ae4a047a959d21 | change |
23 Dec 07:12:44 - [trace] [flow:ac61d6b63edc7d80] e8a055cf20de777b | function |
23 Dec 07:12:44 - [trace] [flow:ac61d6b63edc7d80] 5d3b03dbb4ea9801 | homekit-service |
23 Dec 07:12:44 - [trace] [flow:ac61d6b63edc7d80] 44d7180ceef89150 | inject |
23 Dec 07:12:44 - [trace] [flow:ac61d6b63edc7d80] 9a0d28d3bce71307 | inject |
23 Dec 07:12:44 - [trace] [flow:ac61d6b63edc7d80] 81e7b1fb1a861ff5 | inject |
23 Dec 07:12:44 - [trace] [flow:ac61d6b63edc7d80] 7e39b941a8e2ea20 | switch |
23 Dec 07:12:44 - [trace] [flow:ac61d6b63edc7d80] 66057579505151f3 | link out |
23 Dec 07:12:44 - [trace] [flow:ac61d6b63edc7d80] 66b9bcdc3b484352 | switch |
23 Dec 07:12:44 - [trace] [flow:ac61d6b63edc7d80] 4bf8966822ea0cf5 | link out |
23 Dec 07:12:44 - [trace] [flow:ac61d6b63edc7d80] df918f0df9bffdd1 | rbe |
23 Dec 07:12:44 - [trace] [flow:ac61d6b63edc7d80] 1dfdf78ca5273b89 | change |
23 Dec 07:12:44 - [trace] [flow:ac61d6b63edc7d80] bfe5188c7ae49ac3 | change |
23 Dec 07:12:44 - [trace] [flow:ac61d6b63edc7d80] ------------------|--------------|-----------------
23 Dec 07:12:44 - [trace] [flow:8de679a753371272] start flow [8de679a753371272]
23 Dec 07:12:44 - [trace] [flow:8de679a753371272] ------------------|--------------|-----------------
23 Dec 07:12:44 - [trace] [flow:8de679a753371272] id | type | alias
23 Dec 07:12:44 - [trace] [flow:8de679a753371272] ------------------|--------------|-----------------
23 Dec 07:12:44 - [trace] [flow:8de679a753371272] aaf325d434fd94f3 | shelly-switch |
23 Dec 07:12:44 - [trace] [flow:8de679a753371272] f5f6d01a1050d12f | inject |
23 Dec 07:12:44 - [trace] [flow:8de679a753371272] feafab5a87824869 | inject |
23 Dec 07:12:44 - [trace] [flow:8de679a753371272] bbae895adf1e9bd1 | debug |
23 Dec 07:12:44 - [trace] [flow:8de679a753371272] de73fa271d465d26 | shelly-switch |
23 Dec 07:12:44 - [trace] [flow:8de679a753371272] bd83863e51e72a76 | shelly-switch |
23 Dec 07:12:44 - [trace] [flow:8de679a753371272] f654bef688a9421d | shelly-switch |
23 Dec 07:12:44 - [trace] [flow:8de679a753371272] 4dbb1c627a77801f | debug |
23 Dec 07:12:44 - [trace] [flow:8de679a753371272] 1abf4d2442abeb60 | debug |
23 Dec 07:12:44 - [trace] [flow:8de679a753371272] 51008eef2dea5055 | debug |
23 Dec 07:12:44 - [trace] [flow:8de679a753371272] 6315b4d8c9634e59 | link in |
23 Dec 07:12:44 - [trace] [flow:8de679a753371272] e40216b837cca5ac | inject |
23 Dec 07:12:44 - [trace] [flow:8de679a753371272] 7eeef5d95105f057 | link out |
23 Dec 07:12:44 - [trace] [flow:8de679a753371272] ------------------|--------------|-----------------
23 Dec 07:12:44 - [trace] runtime event: {"id":"runtime-state","retain":true}
23 Dec 07:12:44 - [info] Started flows
23 Dec 07:12:44 - [info] [tradfri-config:Tradfri Felix] Connected to TRADFRI gateway
2021-12-23T06:12:44.779Z kalender-events packageJson version: 0.23.0
2021-12-23T06:12:44.781Z kalender-events getCal - icloud
2021-12-23T06:12:44.792Z kalender-events:icloud requestIcloudSecure - options: {"rejectUnauthorized":false,"hostname":"p31-caldav.icloud.com","port":"443","path":"/223639751/calendars/351E54A9-85EC-4AD6-A100-0B1435502C5F/","method":"REPORT","headers":{"Content-type":"application/xml","Content-Length":395,"User-Agent":"calDavClient","Connection":"close","Depth":"1","Authorization":"Basic TOKEN"}}
2021-12-23T06:12:44.792Z kalender-events:icloud requestIcloudSecure - xml:
<C:calendar-query xmlns:D="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav">
<D:prop>
<C:calendar-data/>
</D:prop>
<C:filter>
<C:comp-filter name="VCALENDAR">
<C:comp-filter name="VEVENT">
<C:time-range start="20211223T00000Z" end="20211223T235959Z" />
</C:comp-filter>
</C:comp-filter>
</C:filter>
</C:calendar-query>
2021-12-23T06:12:44.845Z kalender-events packageJson version: 0.23.0
2021-12-23T06:12:44.845Z kalender-events getCal - icloud
2021-12-23T06:12:44.847Z kalender-events:icloud requestIcloudSecure - options: {"rejectUnauthorized":false,"hostname":"p31-caldav.icloud.com","port":"443","path":"/223639751/calendars/83335524-EB3F-44D7-B6A3-E126D258BD63/","method":"REPORT","headers":{"Content-type":"application/xml","Content-Length":395,"User-Agent":"calDavClient","Connection":"close","Depth":"1","Authorization":"Basic TOKEN"}}
2021-12-23T06:12:44.848Z kalender-events:icloud requestIcloudSecure - xml:
<C:calendar-query xmlns:D="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav">
<D:prop>
<C:calendar-data/>
</D:prop>
<C:filter>
<C:comp-filter name="VCALENDAR">
<C:comp-filter name="VEVENT">
<C:time-range start="20211223T00000Z" end="20211223T235959Z" />
</C:comp-filter>
</C:comp-filter>
</C:filter>
</C:calendar-query>
23 Dec 07:12:44 - [info] [position-config:sun test config] getSunCalc, time difference since last output to low, do no calculation
23 Dec 07:12:44 - [info] [position-config:sun test config] getSunCalc, time difference since last output to low, do no calculation
2021-12-23T06:12:44.882Z kalender-events packageJson version: 0.23.0
2021-12-23T06:12:44.882Z kalender-events getCal - icloud
2021-12-23T06:12:44.884Z kalender-events:icloud requestIcloudSecure - options: {"rejectUnauthorized":false,"hostname":"p31-caldav.icloud.com","port":"443","path":"/223639751/calendars/351E54A9-85EC-4AD6-A100-0B1435502C5F/","method":"REPORT","headers":{"Content-type":"application/xml","Content-Length":395,"User-Agent":"calDavClient","Connection":"close","Depth":"1","Authorization":"Basic TOKEN"}}
2021-12-23T06:12:44.884Z kalender-events:icloud requestIcloudSecure - xml:
<C:calendar-query xmlns:D="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav">
<D:prop>
<C:calendar-data/>
</D:prop>
<C:filter>
<C:comp-filter name="VCALENDAR">
<C:comp-filter name="VEVENT">
<C:time-range start="20211223T00000Z" end="20211223T235959Z" />
</C:comp-filter>
</C:comp-filter>
</C:filter>
</C:calendar-query>
23 Dec 07:12:44 - [info] [tradfri-config:Tradfri Felix] Accessory updated: 65543 Felix Schakelaar
23 Dec 07:12:44 - [info] [tradfri-config:Tradfri Felix] Accessory updated: 65544 Felix Bedlamp
23 Dec 07:12:44 - [info] [tradfri-config:Tradfri Felix] Accessory updated: 65545 Felix Vloerlamp
23 Dec 07:12:44 - [info] [tradfri-config:Tradfri Felix] Accessory updated: 65547 Felix VV
23 Dec 07:12:45 - [warn] [tradfri-light-control:IKEA lights (brightness)] No accessories or groups in message or node configuration!
23 Dec 07:12:45 - [warn] [tradfri-light-control:IKEA lights (brightness)] No accessories or groups in message or node configuration!
23 Dec 07:12:45 - [info] [tradfri-config:Tradfri Felix] Accessory updated: 65548 Felix Z
23 Dec 07:12:45 - [warn] [tradfri-light-control:IKEA lights (color)] No accessories or groups in message or node configuration!
23 Dec 07:12:45 - [info] [tradfri-config:Tradfri Felix] Accessory updated: 65549 Felix AA
23 Dec 07:12:45 - [warn] [tradfri-light-control:IKEA lights (color)] No accessories or groups in message or node configuration!
23 Dec 07:12:45 - [info] [tradfri-config:Tradfri Felix] Accessory updated: 65550 Felix AM
23 Dec 07:12:45 - [info] [tradfri-config:Tradfri Felix] Accessory updated: 65551 Felix VM
23 Dec 07:12:45 - [debug] [within-time-switch:praktijk] --------- within-time-switch - input
23 Dec 07:12:45 - [debug] [within-time-switch:praktijk] out of time - send msg to second output 23/12/2021 07:12:45
23 Dec 07:12:45 - [debug] [within-time-switch:inkom] --------- within-time-switch - input
23 Dec 07:12:45 - [debug] [within-time-switch:inkom] out of time - send msg to second output 23/12/2021 07:12:45
23 Dec 07:12:45 - [debug] [within-time-switch:straatlamp] --------- within-time-switch - input
23 Dec 07:12:45 - [debug] [within-time-switch:straatlamp] out of time - send msg to second output 23/12/2021 07:12:45
23 Dec 07:12:45 - [warn] [function:set straatlamp] sun: night
23 Dec 07:12:45 - [warn] [function:set straatlamp] active: false
23 Dec 07:12:45 - [warn] [function:set straatlamp] payload: false
23 Dec 07:12:45 - [warn] [function:set straatlamp] sun: night
23 Dec 07:12:45 - [warn] [function:set straatlamp] active: false
23 Dec 07:12:45 - [warn] [function:set straatlamp] payload: false
23 Dec 07:12:45 - [info] [tradfri-config:Tradfri Felix] Group updated: 131074 SuperGroup
23 Dec 07:12:45 - [info] [tradfri-config:Tradfri Felix] Group updated: 131076 Felix
2021-12-23T06:12:45.218Z kalender-events Error: No data
at ClientRequest. (/home/pi/.node-red/node_modules/kalender-events/dist/icloud.js:75:31)
at ClientRequest.emit (events.js:400:28)
at TLSSocket.socketCloseListener (_http_client.js:434:9)
at TLSSocket.emit (events.js:412:35)
at net.js:686:12
at TCP.done (_tls_wrap.js:564:7)
23 Dec 07:12:45 - [error] [ical-upcoming:consultaties] Error: No data
23 Dec 07:12:45 - [debug] [ical-upcoming:consultaties] Ical read successfully https://p31-caldav.icloud.com:443/223639751/calendars/351E54A9-85EC-4AD6-A100-0B1435502C5F/
2021-12-23T06:12:45.242Z kalender-events Error: No data
at ClientRequest. (/home/pi/.node-red/node_modules/kalender-events/dist/icloud.js:75:31)
at ClientRequest.emit (events.js:400:28)
at TLSSocket.socketCloseListener (_http_client.js:434:9)
at TLSSocket.emit (events.js:412:35)
at net.js:686:12
at TCP.done (_tls_wrap.js:564:7)
23 Dec 07:12:45 - [error] [ical-upcoming:specials] Error: No data
23 Dec 07:12:45 - [debug] [ical-upcoming:specials] Ical read successfully https://p31-caldav.icloud.com:443/223639751/calendars/83335524-EB3F-44D7-B6A3-E126D258BD63/
2021-12-23T06:12:45.257Z kalender-events Error: No data
at ClientRequest. (/home/pi/.node-red/node_modules/kalender-events/dist/icloud.js:75:31)
at ClientRequest.emit (events.js:400:28)
at TLSSocket.socketCloseListener (_http_client.js:434:9)
at TLSSocket.emit (events.js:412:35)
at net.js:686:12
at TCP.done (_tls_wrap.js:564:7)
23 Dec 07:12:45 - [error] [ical-upcoming:consultaties] Error: No data
23 Dec 07:12:45 - [debug] [ical-upcoming:consultaties] Ical read successfully https://p31-caldav.icloud.com:443/223639751/calendars/351E54A9-85EC-4AD6-A100-0B1435502C5F/
Preparing Advertiser for 'Node-RED bridge 6402' using bonjour-hap backend!
Starting to advertise 'Node-RED bridge 6402' using bonjour-hap backend!

You can easily find the 'Error: no data' lines.
What surprises me is that the line after the 'Error: no data' says 'Ical read successfully'.

However, what surprises me most of all is that going to version 1.5.2 does not help:

2021-12-23T06:24:23.490Z kalender-events getEvents - pastview: Thu Dec 23 2021 00:00:00 GMT+0100
2021-12-23T06:24:23.491Z kalender-events getEvents - preview: Thu Dec 23 2021 23:59:59 GMT+0100
2021-12-23T06:24:23.491Z kalender-events getEvents - processedData: []
23 Dec 07:24:23 - [debug] [ical-upcoming:specials] Ical read successfully https://p31-caldav.icloud.com:443/223639751/calendars/83335524-EB3F-44D7-B6A3-E126D258BD63/

So, now with 1.5.2 I also no longer get any data out of ical. It looks like using version 2.0.x permanently broke something, but I think that should be impossible.

I did some additional testing. Normally I use 'iCloud secure' as I am reading patients appointments. For testing I set up an 'insecure' iCal configuration node and that works fine. Apparently the issue sits in the secure part.

My last idea is that Apple changed something in how to access iClod calendars securely. that would explain why version 1.5.2 also no longer returns results.

Regards, ahartman, belgium

@naimo84
Copy link
Owner

naimo84 commented Dec 23, 2021

Hi Andre,

Thanks for sharing the debug log. I've removed the Basic Auth Header for you from the logs ;)
But: I tested it with this this Username /Password and I'm getting an "Unauthorized" error with this at the very first request of my logic.

Maybe your application password is expired? Does apple offer such an option?

You can test this even without nodejs, just pure linux curl (replace abcd-... password and username😉 ) :

curl -v -s -X PROPFIND -u "user@me.com:abcd-efgh-jklm-nopq" -H "Depth: 0"  --data "<propfind xmlns='DAV:'><prop><current-user-principal/></prop></propfind>"  https://caldav.icloud.com/

image

Greets,
Benjamin

@ahartman
Copy link
Author

ahartman commented Dec 24, 2021

Benjamin,
As far as I know app-specific passwords do not expire; anyway, I created a new one recently.
I used your curl command and that works fine, see 'Terminal 1'; I can also retrieve all calendars, see 'Terminal 2'.
I do not know the curl command to effectively retrieve events from a calendar, so I could not test that.
Regards, ahartman, belgium

@naimo84
Copy link
Owner

naimo84 commented Dec 24, 2021

Good Morning,

with this new password kalender-events/node-red-contrib-ical-events is working on my side.

image

If it's not working on your side, I only can implement more debug infos to find the error.

Happy Christmas anyway 😉

Benjamin

@ahartman
Copy link
Author

ahartman commented Dec 24, 2021 via email

@naimo84
Copy link
Owner

naimo84 commented Dec 24, 2021

Dear André,
very very strange behaviour of icloud.
but nice to hear, it's working again 👍👍👍

I hope it's the last issue for some time 😉

otherwise it's always a pleasure to write with you 👍

"Dankeschön, ich wünsche dir auch ein schönes Weihnachtsfest und einen guten Rutsch ins Neue Jahr."

Grüße aus Bayern
Benjamin

P. s. I'll close this issue for now, feel free to reopen it 😊

@naimo84 naimo84 closed this as completed Dec 24, 2021
@naimo84
Copy link
Owner

naimo84 commented Jan 30, 2022

@ahartman : be careful 😉 i published a new version 😐

@ahartman
Copy link
Author

ahartman commented Feb 3, 2022 via email

@naimo84
Copy link
Owner

naimo84 commented Feb 3, 2022

Dear André,

I knew it... I've double checked (triple checked) my code... But I have definitely not changed the logic with the regular expressions :(
Unfortunately it's working again on my side, with my icloud and with

image

I can't see your image attached. May you re-upload it perhaps?

Backing up before any of my updates is always a good idea ;)

Greets,
Benjamin

@naimo84 naimo84 reopened this Feb 3, 2022
@ahartman
Copy link
Author

ahartman commented Feb 3, 2022 via email

@naimo84
Copy link
Owner

naimo84 commented Feb 3, 2022

André,

I think you have to upload it via the github website. Answering via mail seems not to upload any image ;)

Thanks and regards,
Benjamin

@ahartman
Copy link
Author

ahartman commented Feb 3, 2022

Benjamin,
Solved the issue. If you look at the 'Trigger' field, you can see the left dropdown changed from "trigger' to 'string'. Changing it back to 'trigger' and we are back to normal. No idea how this happened.

Schermafbeelding 2022-02-03 om 11 27 14

@naimo84
Copy link
Owner

naimo84 commented Feb 3, 2022

I tried a update from 1.5.6 and from 2.0.2 to v2.1.1 and this doesn't happen to me ... I also have no idea... Sorry

@naimo84 naimo84 closed this as completed Feb 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants