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

Fresh installation with "TypeError: Cannot read property 'getHours' of undefined" #92

Closed
Speeedy0815 opened this issue Jun 23, 2021 · 9 comments

Comments

@Speeedy0815
Copy link

Speeedy0815 commented Jun 23, 2021

Hi. I have a fresh installation and I only get:

"TypeError: Cannot read property 'getHours' of undefined"

as an arrormessage. And the node returns only an empty array.

Node red: 1.3.5
node-red-contrib-ical-events: 1.2.0
Raspberry Pi 4

What can I do? Do you need more information?

@naimo84
Copy link
Owner

naimo84 commented Jun 23, 2021

Hi @Speeedy0815,

sorry for the circumstances. But yes, a bit more information would be useful :)
What type do you use? caldav/ical/icloud?
Do you include Todos?

the javascript function getHours is only used on a few codesnippets.
image
As you see, it's only applied on eventStart and eventEnd dates.
So this means, that one of your events has no start or end date. I even don't know, if this is possible ;)

A export of your flow and your ics would be nice

Regards,
Benjamin

@Speeedy0815
Copy link
Author

Thank you for your VERY fast Answer.

Here is the flow:

[{"id":"c2f88460.232828","type":"ical-upcoming","z":"4d68f497.57c2ec","confignode":"74a6acea.dc4824","checkall":false,"cron":"","timeout":"0","timeoutUnits":"hours","name":"","offset":"","endpreview":"2","endpreviewUnits":"days","preview":"7","previewUnits":"days","pastview":"0","pastviewUnits":"days","trigger":"always","timezone":"","filterProperty":"summary","filterOperator":"between","filter2":"","filter":"","x":590,"y":1400,"wires":[["12564d30.86d573"]]},{"id":"12564d30.86d573","type":"debug","z":"4d68f497.57c2ec","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":850,"y":1400,"wires":[]},{"id":"eea8d605.15dbc8","type":"inject","z":"4d68f497.57c2ec","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":370,"y":1400,"wires":[["c2f88460.232828"]]},{"id":"74a6acea.dc4824","type":"ical-config","url":"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX","caldav":"false","caltype":"ical","name":"Geburtstagskalender","replacedates":false,"usecache":false,"username":"","includeTodo":false,"password":"","calendar":"","pastWeeks":"0","futureWeeks":"4"}]

@Speeedy0815
Copy link
Author

The link to the calender I'll not poste public.

@Speeedy0815
Copy link
Author

I wrote you an mail with the calender.

@johanvh83
Copy link

Any solution for this issue? Have the same error

@Speeedy0815
Copy link
Author

until yet, no. I wrote som mails with naimo84, but we don't found a solution.

@johanvh83
Copy link

Thanks Speedy0815 for your response. Get exactly the same error. I have the feeling that this contribution is very powerfull and usefull but as I have no 'programming skills' I have to rely on my self made knowledge. In this case the documentation is to basic for me. Unfortunately, I'm also not able to set it up in a proper way.

@naimo84
Copy link
Owner

naimo84 commented Jul 14, 2021

Hey, unfortunately time is fleeting. kids are very time consuming 😁

hopefully this helps a little bit to find the error: https://github.com/naimo84/node-red-contrib-ical-events/wiki/Debugging

Greets,
Benjamin

naimo84 added a commit that referenced this issue Jul 27, 2021
@Speeedy0815
Copy link
Author

Thank you very much. I tested it right now. It's working!!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants