Ruben Zapata
Ruben Zapata

Reputation: 11

How can I fix WatchKitExtension Errors Code=3 in watchOS 6

I’m currently developing an app and came across a few errors with healhkit. The current problem is that I get the following message

WatchKit Extension[89109:8693231] [workouts] Failed to restart task server after connection invalidation:Error Domain=com.apple.healthkit Code=3 "Task server endpoint for '304EBEF3-3D84-4E80-BDE8-BF2D7971F608' already exists" UserInfo={NSLocalizedDescription=Task server endpoint for '304EBEF3-3D84-4E80-BDE8-BF2D7971F608' already exists}

I don’t know if there are just multiple errors stemming from the same location in code or where to even find it. Can anyone shed light as to how to go upon solving this?

Upvotes: 1

Views: 132

Answers (1)

Mark Perkins
Mark Perkins

Reputation: 215

What is your code doing at the moment this error occurs. For me, i was tryin to save a Data object into a HKWorkoutEvent's metadata. turns out there are size limits to what you can store, after i minimized it this issue went away. I realize this is an old post, but thought it might help someone else debug.

Upvotes: 0

Related Questions