LittleBigRefresh / Refresh

A second-generation custom server for LittleBigPlanet that focuses on quality of life features and improving user experience.
https://lbp.littlebigrefresh.com
GNU Affero General Public License v3.0
75 stars 25 forks source link

Comments cannot be uploaded #601

Closed Arcadius2006 closed 3 months ago

Arcadius2006 commented 3 months ago

whenever you try to post a comment on a level or profile, it doesn't work

the game spits out a "There was an error posting your comment. Please try again later." error

games tested are: LittleBIgPlanet 2, LittleBIgPlanet 3, LittleBigPlanet PSVita

jvyden commented 3 months ago

Looks to be a migration failure:

Realms.Exceptions.RealmDuplicatePrimaryKeyValueException: A GameProfileComment object already exists with primary key property SequentialId == '1017'
   at Realms.Realm.AddInternal[T](T obj, Type objectType, Boolean update)
   at Realms.Realm.Add[T](T obj, Boolean update)
   at Refresh.GameServer.Database.GameDatabaseContext.<>c__DisplayClass117_0`1.<AddSequentialObject>b__1() in /home/runner/work/Refresh/Refresh/Refresh.GameServer/Database/GameDatabaseContext.cs:line 102
   at Realms.Realm.Write[T](Func`1 function)
   at Refresh.GameServer.Database.GameDatabaseContext.AddSequentialObject[T](T obj, IList`1 list, Action writtenCallback) in /home/runner/work/Refresh/Refresh/Refresh.GameServer/Database/GameDatabaseContext.cs:line 96
   at Refresh.GameServer.Database.GameDatabaseContext.AddSequentialObject[T](T obj) in /home/runner/work/Refresh/Refresh/Refresh.GameServer/Database/GameDatabaseContext.cs:line 123
   at Refresh.GameServer.Database.GameDatabaseContext.PostCommentToProfile(GameUser profile, GameUser author, String content) in /home/runner/work/Refresh/Refresh/Refresh.GameServer/Database/GameDatabaseContext.Comments.cs:line 23
   at Refresh.GameServer.Endpoints.Game.CommentEndpoints.PostProfileComment(RequestContext context, GameDatabaseContext database, String username, SerializedComment body, GameUser user, IDateTimeProvider timeProvider) in /home/runner/work/Refresh/Refresh/Refresh.GameServer/Endpoints/Game/CommentEndpoints.cs:line 33
   at InvokeStub_CommentEndpoints.PostProfileComment(Object, Span`1)
   at System.Reflection.MethodBaseInvoker.InvokeWithManyArgs(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)