MagicMirror: Calendar module: TypeError: fetch failed
Platform:
pi@magicmirror:~ $ uname -a Linux magicmirror 6.1.21-v7+ #1642 SMP Mon Apr 3 17:20:52 BST 2023 armv7l GNU/Linux pi@magicmirror:~ $ lsb_release -a No LSB modules are available. Distributor ID: Raspbian Description: Raspbian GNU/Linux 11 (bullseye) Release: 11 Codename: bullseye
Node Version: v20.10.0
MagicMirror² Version: v2.26.0
Description: My calendar module does not appear to update at all since the first time it loaded. No events created since the calendar has been added to the module are showing.
Steps to Reproduce:
- Add my calendar server & credentials to module config
- pm2 restart MagicMirror
- View calendar successfully on mirror
- Add an event to my calendar which will show within the maximumEntries events
- Wait period to allow for fetch interval
Expected Results: I would expect to see the new event I created, especially as I can see events occurring later than my new event.
Actual Results: There is no change to the events shown on the mirror. No new events created are showing. Tried with several new events that are expected to show. The calendar module is still showing events in 3 days time but will not show my newly created event that is scheduled for tomorrow.
Errors noted:
pi@magicmirror:~/.pm2/logs $ tail --lines=1000 MagicMirror-error.log | grep calendar [02.01.2024 10:29.43.758] [ERROR] Calendar Error. Could not fetch calendar: https://myurl TypeError: fetch failed [02.01.2024 10:31.53.769] [ERROR] Calendar Error. Could not fetch calendar: https://myurl TypeError: fetch failed
Configuration:
{
module: "calendar",
header: "home cloud calendar",
position: "top_left",
config: {
fetchInterval: 120000,
timeFormat: 'absolute',
maximumEntries: 5,
calendars: [
{
url: 'https://my.locally.hosted.baikal.server.url/dav.php/user/calendar?export',
auth: {
user: 'user',
pass: 'pass',
method: 'basic'
}
}
],
}
},
Additional Notes: pm2 restart or a full reboot do not resolve
About this issue
- Original URL
- State: open
- Created 6 months ago
- Comments: 26 (2 by maintainers)
sudo nano /etc/sysctl.conf
# Disable IPv6 net.ipv6.conf.all.disable_ipv6 = 1 net.ipv6.conf.default.disable_ipv6 = 1 net.ipv6.conf.lo.disable_ipv6 = 1
sudo nano /etc/sysctl.conf
Solved it for now. Please implement a better solution.