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

NativeImplV1 failed to upload workout #686

Closed
betoatx opened this issue Nov 27, 2024 · 2 comments
Closed

NativeImplV1 failed to upload workout #686

betoatx opened this issue Nov 27, 2024 · 2 comments
Labels

Comments

@betoatx
Copy link

betoatx commented Nov 27, 2024

I get this error when clicking sync in older and latest version:

Errors during sync - GUpload Exit Code: -1 - NativeImplV1 failed to upload workout C:\Users\abcam\Documents\Albert\Garmin\ui_win_4.3.0\working\upload\aab21cea025b41bb9d3b2f7395782da7_30_min_HIIT_&_Hills_Ride_with_Camila_Ramón.fit, Response could not be deserialized to JSON: POST https://connectapi.garmin.com/upload-service/upload/.fit

Then in the logs I get this:

2024-11-26 19:57:33.437 -06:00 [INF] Found 1 workouts remaining after filtering ExcludedWorkoutTypes.
2024-11-26 19:57:33.438 -06:00 [INF] Converting workouts...
2024-11-26 19:57:33.459 -06:00 [INF] Uploading workouts to Garmin...
2024-11-26 19:57:33.460 -06:00 [INF] Uploading to Garmin: C:\Users\username\Documents\Name\Garmin\ui_win_4.3.0\working\upload\aab21cea025b41bb9d3b2f7395782da7_30_min_HIIT_&_Hills_Ride_with_Camila_Ramón.fit
2024-11-26 19:57:33.571 -06:00 [ERR] Http Failed to deserialize response to target type: JSON
Flurl.Http.FlurlParsingException: Response could not be deserialized to JSON: POST https://connectapi.garmin.com/upload-service/upload/.fit
---> System.Text.Json.JsonException: The JSON value could not be converted to Garmin.Dto.UploadResponse. Path: $ | LineNumber: 0 | BytePositionInLine: 1.
at System.Text.Json.ThrowHelper.ThrowJsonException_DeserializeUnableToConvertValue(Type propertyType)
at System.Text.Json.Serialization.Converters.ObjectDefaultConverter1.OnTryRead(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options, ReadStack& state, T& value) at System.Text.Json.Serialization.JsonConverter1.TryRead(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options, ReadStack& state, T& value, Boolean& isPopulatedValue)
at System.Text.Json.Serialization.JsonConverter1.ReadCore(Utf8JsonReader& reader, JsonSerializerOptions options, ReadStack& state) at System.Text.Json.Serialization.Metadata.JsonTypeInfo1.ContinueDeserialize(ReadBufferState& bufferState, JsonReaderState& jsonReaderState, ReadStack& readStack)
at System.Text.Json.Serialization.Metadata.JsonTypeInfo`1.Deserialize(Stream utf8Json)
at Flurl.Http.Configuration.DefaultJsonSerializer.Deserialize[T](Stream stream)
at Flurl.Http.FlurlResponse.GetJsonAsyncT
--- End of inner exception stack trace ---
2024-11-26 19:57:33.571 -06:00 [INF] Response: "OK" - POST - "https://connectapi.garmin.com/upload-service/upload/.fit" - Date: Wed, 27 Nov 2024 01:57:33 GMT

snip

2024-11-26 19:57:33.571 -06:00 [ERR] Garmin Uploader failed to upload to Garmin Connect. GUpload Exit Code: -1 - NativeImplV1 failed to upload workout C:\Users\username\Documents\Name\Garmin\ui_win_4.3.0\working\upload\aab21cea025b41bb9d3b2f7395782da7_30_min_HIIT_&Hills_Ride_with_Camila_Ramón.fit, Response could not be deserialized to JSON: POST https://connectapi.garmin.com/upload-service/upload/.fit
Garmin.GarminUploadException: GUpload Exit Code: -1 - NativeImplV1 failed to upload workout C:\Users\username\Documents\Name\Garmin\ui_win_4.3.0\working\upload\aab21cea025b41bb9d3b2f7395782da7_30_min_HIIT
&_Hills_Ride_with_Camila_Ramón.fit, Response could not be deserialized to JSON: POST https://connectapi.garmin.com/upload-service/upload/.fit
---> Flurl.Http.FlurlParsingException: Response could not be deserialized to JSON: POST https://connectapi.garmin.com/upload-service/upload/.fit
---> System.Text.Json.JsonException: The JSON value could not be converted to Garmin.Dto.UploadResponse. Path: $ | LineNumber: 0 | BytePositionInLine: 1.
at System.Text.Json.ThrowHelper.ThrowJsonException_DeserializeUnableToConvertValue(Type propertyType)
at System.Text.Json.Serialization.Converters.ObjectDefaultConverter1.OnTryRead(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options, ReadStack& state, T& value) at System.Text.Json.Serialization.JsonConverter1.TryRead(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options, ReadStack& state, T& value, Boolean& isPopulatedValue)
at System.Text.Json.Serialization.JsonConverter1.ReadCore(Utf8JsonReader& reader, JsonSerializerOptions options, ReadStack& state) at System.Text.Json.Serialization.Metadata.JsonTypeInfo1.ContinueDeserialize(ReadBufferState& bufferState, JsonReaderState& jsonReaderState, ReadStack& readStack)
at System.Text.Json.Serialization.Metadata.JsonTypeInfo1.Deserialize(Stream utf8Json) at Flurl.Http.Configuration.DefaultJsonSerializer.Deserialize[T](Stream stream) at Flurl.Http.FlurlResponse.GetJsonAsync[T]() --- End of inner exception stack trace --- at Flurl.Http.FlurlClient.HandleExceptionAsync(FlurlCall call, Exception ex, CancellationToken token) at Flurl.Http.FlurlResponse.GetJsonAsync[T]() at Flurl.Http.ResponseExtensions.ReceiveJson[T](Task1 response)
at Garmin.ApiClient.UploadActivity(String filePath, String format, GarminApiAuthentication auth, String userAgent) in D:\a\peloton-to-garmin\peloton-to-garmin\src\Garmin\ApiClient.cs:line 124
at Garmin.GarminUploader.UploadAsync(String[] files, Settings settings) in D:\a\peloton-to-garmin\peloton-to-garmin\src\Garmin\GarminUploader.cs:line 102
--- End of inner exception stack trace ---
at Garmin.GarminUploader.UploadAsync(String[] files, Settings settings) in D:\a\peloton-to-garmin\peloton-to-garmin\src\Garmin\GarminUploader.cs:line 106
at Garmin.GarminUploader.UploadToGarminAsync() in D:\a\peloton-to-garmin\peloton-to-garmin\src\Garmin\GarminUploader.cs:line 74
at Sync.SyncService.SyncAsync(IEnumerable1 workoutIds, ICollection1 exclude) in D:\a\peloton-to-garmin\peloton-to-garmin\src\Sync\SyncService.cs:line 171

@betoatx betoatx added the bug label Nov 27, 2024
@gregegan
Copy link

Running into this issue too starting today

@philosowaffle
Copy link
Owner

Closing. Duplicate of #683

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

No branches or pull requests

3 participants