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

default calendar losing events between backend and front end #3380

Open
sdetweil opened this issue Feb 2, 2024 · 13 comments
Open

default calendar losing events between backend and front end #3380

sdetweil opened this issue Feb 2, 2024 · 13 comments

Comments

@sdetweil
Copy link
Collaborator

sdetweil commented Feb 2, 2024

see

https://forum.magicmirror.builders/topic/18325/calendar-not-updating/85?_=1706893005707

I have added traces to just before the socketsend from node helper and traces to the front end, and the event shows before send, and does not show after socket receive

the event is NOT at the start or end of the data

how else can I debug this?

we just did a new npm install, on 2.26, with [email protected]

@sdetweil
Copy link
Collaborator Author

sdetweil commented Feb 2, 2024

and it's repeatable. same event gets lost

@sdetweil
Copy link
Collaborator Author

sdetweil commented Feb 3, 2024

socketio uses json stringify before send, and parse on receive

my traces do the same..

Copy link

github-actions bot commented Oct 5, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@sdetweil
Copy link
Collaborator Author

closing , can't reproduce

@sdetweil sdetweil reopened this Jan 28, 2025
@sdetweil
Copy link
Collaborator Author

sdetweil commented Jan 28, 2025

this is happening again on 2.30
https://forum.magicmirror.builders/post/123493
only thing we changed here was the socketio setup

@emlowe
Copy link

emlowe commented Jan 28, 2025

I appear to be having this issue:

I added various log outputs to node_helper.js and calendar.js

node_helper is sending the socket notification for CALENDAR_EVENTS
this is not received by the front-end code in calendar.js

I don’t know what happens to it, but I added logging to print out in calendar.js whenever the socketNotificationReceived handler is called and it doesn’t print.

(unless I refresh the page - at which point it does)

@emlowe
Copy link

emlowe commented Jan 28, 2025

I have seen this behavior in both server mode and with normal electron mode. Most of my recent debugging is in server mode so I can bring up the webpage in a different browser on a second machine

Current test environment:

rpi3 with Debian GNU/Linux 12 (bookworm)
Running develop branch of MM with node v22.13.0
Front-end on Brave browser on a mac

@sdetweil
Copy link
Collaborator Author

can you try safari or chrome?

@emlowe
Copy link

emlowe commented Jan 29, 2025

I'll note that the events do seem to eventually appear , although sometimes this takes several hours.

@sdetweil
Copy link
Collaborator Author

yes, the socketio pipe is not connected for some reason

@emlowe
Copy link

emlowe commented Jan 29, 2025

Same behaviour with Safari and Firefox

@sdetweil
Copy link
Collaborator Author

thanks

@github-actions github-actions bot removed the wontfix label Feb 1, 2025
@sdetweil
Copy link
Collaborator Author

sdetweil commented Feb 5, 2025

any idea how to debug this? is socketio buffered?

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

2 participants