Skip to content

_HKObjectValidationFailureException: startDate (2025-03-26 10:30:00 +0000) cannot occur after endDate (2025-03-26 10:29:55 +0000) #6878

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

Open
sentry-io bot opened this issue Mar 26, 2025 · 0 comments

Comments

@sentry-io
Copy link

sentry-io bot commented Mar 26, 2025

Sentry Issue: 29K-CUPCAKE-16X

_HKObjectValidationFailureException: startDate (2025-03-26 10:30:00 +0000) cannot occur after endDate (2025-03-26 10:29:55 +0000)
  File "<compiler-generated>", in HKCategorySample.__allocating_init
  File "<compiler-generated>", in ReactNativeHealthkit.saveCategorySample
...
(20 additional frame(s) were not displayed)

Happens when user has mindfulness minutes enabled and tries to join a live session before it has started. Basically logging a mindfulness minute in the future

logMindfulMinutes(dayjs(session.startTime).toDate());

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

0 participants