rithik-b / PlaylistManager

Playlist loading and organization mod for Beat Saber.
GNU General Public License v3.0
100 stars 25 forks source link

BeatSaber 1.29.1 serialization exception because "curator" is already defined. #67

Closed Danielduel closed 10 months ago

Danielduel commented 10 months ago

When I press "Download" on playlist that I don't have all maps - it silently fails and reloads songs and playlists (like after successful download)

Adding versions and logs below:

Versions/logs:

BeatSaber 1.29.1 (beta branch)

Dependencies:

SongCore@3.10.2
BeatSaverSharp@3.4.5
BeatSaberMarkupLanguage@1.6.10
SiraUtil@3.1.2
BeatSaberPlaylistsLib@1.6.6

I think the first line is the most important:

[ERROR @ 00:44:33 | PlaylistManager] Failed to download Song 6CC66AC162136CCA1499BEB517BE3F677F434947. Exception: Newtonsoft.Json.JsonSerializationException: A member with the name 'curator' already exists on 'BeatSaverSharp.Models.Beatmap'. Use the JsonPropertyAttribute to specify another name.
[ERROR @ 00:44:33 | PlaylistManager]   at Newtonsoft.Json.Serialization.JsonPropertyCollection.AddProperty (Newtonsoft.Json.Serialization.JsonProperty property) [0x0011d] in <2676a2da6edc420e890ed28aa4572ee5>:0 
[ERROR @ 00:44:33 | PlaylistManager]   at Newtonsoft.Json.Serialization.DefaultContractResolver.CreateProperties (System.Type type, Newtonsoft.Json.MemberSerialization memberSerialization) [0x00072] in <2676a2da6edc420e890ed28aa4572ee5>:0 
[ERROR @ 00:44:33 | PlaylistManager]   at Newtonsoft.Json.Serialization.DefaultContractResolver.CreateObjectContract (System.Type objectType) [0x0003a] in <2676a2da6edc420e890ed28aa4572ee5>:0 
[ERROR @ 00:44:33 | PlaylistManager]   at Newtonsoft.Json.Serialization.DefaultContractResolver.CreateContract (System.Type objectType) [0x0010f] in <2676a2da6edc420e890ed28aa4572ee5>:0 
[ERROR @ 00:44:33 | PlaylistManager]   at Newtonsoft.Json.Serialization.CamelCasePropertyNamesContractResolver.ResolveContract (System.Type type) [0x00036] in <2676a2da6edc420e890ed28aa4572ee5>:0 
[ERROR @ 00:44:33 | PlaylistManager]   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.GetContract (System.Type type) [0x00000] in <2676a2da6edc420e890ed28aa4572ee5>:0 
[ERROR @ 00:44:33 | PlaylistManager]   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.GetContractSafe (System.Type type) [0x0000b] in <2676a2da6edc420e890ed28aa4572ee5>:0 
[ERROR @ 00:44:33 | PlaylistManager]   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize (Newtonsoft.Json.JsonReader reader, System.Type objectType, System.Boolean checkAdditionalContent) [0x0000e] in <2676a2da6edc420e890ed28aa4572ee5>:0 
[ERROR @ 00:44:33 | PlaylistManager]   at Newtonsoft.Json.JsonSerializer.DeserializeInternal (Newtonsoft.Json.JsonReader reader, System.Type objectType) [0x00054] in <2676a2da6edc420e890ed28aa4572ee5>:0 
[ERROR @ 00:44:33 | PlaylistManager]   at Newtonsoft.Json.JsonSerializer.Deserialize (Newtonsoft.Json.JsonReader reader, System.Type objectType) [0x00000] in <2676a2da6edc420e890ed28aa4572ee5>:0 
[ERROR @ 00:44:33 | PlaylistManager]   at Newtonsoft.Json.JsonConvert.DeserializeObject (System.String value, System.Type type, Newtonsoft.Json.JsonSerializerSettings settings) [0x0002d] in <2676a2da6edc420e890ed28aa4572ee5>:0 
[ERROR @ 00:44:33 | PlaylistManager]   at Newtonsoft.Json.JsonConvert.DeserializeObject[T] (System.String value, Newtonsoft.Json.JsonSerializerSettings settings) [0x00000] in <2676a2da6edc420e890ed28aa4572ee5>:0 
[ERROR @ 00:44:33 | PlaylistManager]   at Newtonsoft.Json.JsonConvert.DeserializeObject[T] (System.String value) [0x00000] in <2676a2da6edc420e890ed28aa4572ee5>:0 
[ERROR @ 00:44:33 | PlaylistManager]   at BeatSaverSharp.Http.UnityWebRequestHttpResponse+<ReadAsObjectAsync>d__12`1[T].MoveNext () [0x00096] in <cf2a91ab075842019025a9cc37ea5098>:0 
[ERROR @ 00:44:33 | PlaylistManager] --- End of stack trace from previous location where exception was thrown ---
[ERROR @ 00:44:33 | PlaylistManager]   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <eae584ce26bc40229c1b1aa476bfa589>:0 
[ERROR @ 00:44:33 | PlaylistManager]   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <eae584ce26bc40229c1b1aa476bfa589>:0 
[ERROR @ 00:44:33 | PlaylistManager]   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <eae584ce26bc40229c1b1aa476bfa589>:0 
[ERROR @ 00:44:33 | PlaylistManager]   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <eae584ce26bc40229c1b1aa476bfa589>:0 
[ERROR @ 00:44:33 | PlaylistManager]   at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <eae584ce26bc40229c1b1aa476bfa589>:0 
[ERROR @ 00:44:33 | PlaylistManager]   at BeatSaverSharp.BeatSaver+<FetchBeatmap>d__23.MoveNext () [0x00139] in <cf2a91ab075842019025a9cc37ea5098>:0 
[ERROR @ 00:44:33 | PlaylistManager] --- End of stack trace from previous location where exception was thrown ---
[ERROR @ 00:44:33 | PlaylistManager]   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <eae584ce26bc40229c1b1aa476bfa589>:0 
[ERROR @ 00:44:33 | PlaylistManager]   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <eae584ce26bc40229c1b1aa476bfa589>:0 
[ERROR @ 00:44:33 | PlaylistManager]   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <eae584ce26bc40229c1b1aa476bfa589>:0 
[ERROR @ 00:44:33 | PlaylistManager]   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <eae584ce26bc40229c1b1aa476bfa589>:0 
[ERROR @ 00:44:33 | PlaylistManager]   at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <eae584ce26bc40229c1b1aa476bfa589>:0 
[ERROR @ 00:44:33 | PlaylistManager]   at BeatSaverSharp.BeatSaver+<BeatmapByHash>d__22.MoveNext () [0x000e3] in <cf2a91ab075842019025a9cc37ea5098>:0 
[ERROR @ 00:44:33 | PlaylistManager] --- End of stack trace from previous location where exception was thrown ---
[ERROR @ 00:44:33 | PlaylistManager]   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <eae584ce26bc40229c1b1aa476bfa589>:0 
[ERROR @ 00:44:33 | PlaylistManager]   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <eae584ce26bc40229c1b1aa476bfa589>:0 
[ERROR @ 00:44:33 | PlaylistManager]   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <eae584ce26bc40229c1b1aa476bfa589>:0 
[ERROR @ 00:44:33 | PlaylistManager]   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <eae584ce26bc40229c1b1aa476bfa589>:0 
[ERROR @ 00:44:33 | PlaylistManager]   at System.Runtime.CompilerServices.TaskAwaiter`1[TResult].GetResult () [0x00000] in <eae584ce26bc40229c1b1aa476bfa589>:0 
[ERROR @ 00:44:33 | PlaylistManager]   at PlaylistManager.Downloaders.PlaylistSequentialDownloader+<BeatmapDownloadByHash>d__37.MoveNext () [0x0009e] in <7885b601797043658889851f732b6a04>:0 
Danielduel commented 10 months ago

Note to try https://discord.com/channels/441805394323439646/1091174272036253696/1138405498903855195

Danielduel commented 10 months ago

Updated to latest, no luck.

rithik-b commented 10 months ago

The serialization exception is coming from BeatSaverSharp could open an issue there instead