Search Unity

Bug Friend requests are no longer being received by anyone

Discussion in 'Friends' started by the_humble, May 26, 2023.

  1. the_humble

    the_humble

    Joined:
    Oct 14, 2019
    Posts:
    12
    I am using the Friends service to create relationships within my game, and had a working prototype yesterday where players could add each other with their Unity player ID. Starting today, as I was testing the remove friend functionality, I discovered that they can no longer add each other, sending friend requests to each other but not being able to resolve them. Is the service currently interrupted? Does removing a friend not allow you to re add them?

    As a side question, is there a way to observe existing relationships through the dashboard?
     
  2. UnityRalahHaddad

    UnityRalahHaddad

    Unity Technologies

    Joined:
    Feb 21, 2022
    Posts:
    10
    Hi the_humble
    Thank you for raising this, can you let me know if you have changed the code between your testing yesterday and today? Are you still testing adding each other by Unity player ID?
    I would appreciate if you can share with us the logs/errors you are receiving and if you can share some of your code snippets.
     
  3. the_humble

    the_humble

    Joined:
    Oct 14, 2019
    Posts:
    12
    So it seems there was some confusion from my part, the only difference in my code was how I was getting the userIDs from my players, in my proper testing it was using the inspector, in the final implementation it was using the TMP_InputField. I was pulling from the input field text component which was appending unprintablke characters, making it seem like it was correct through the inspector. I am now using inputfield.text and the issue was fixed. Apologies for the inconvenieces
     
  4. sathya

    sathya

    Joined:
    Jul 30, 2012
    Posts:
    297
    [Friends]: , (24409). Message: Conflict
    Got the above error while sending a friend request.
    Here is the log
    Code (CSharp):
    1. [Friends]: , (24409). Message: Conflict
    2. 0x00007ff62d732abd (Unity) StackWalker::GetCurrentCallstack
    3. 0x00007ff62d737a69 (Unity) StackWalker::ShowCallstack
    4. 0x00007ff62e7018c1 (Unity) GetStacktrace
    5. 0x00007ff62edc1732 (Unity) DebugStringToFile
    6. 0x00007ff62c7432b6 (Unity) DebugLogHandler_CUSTOM_Internal_Log
    7. 0x000001d9f0582aca (Mono JIT Code) (wrapper managed-to-native) UnityEngine.DebugLogHandler:Internal_Log (UnityEngine.LogType,UnityEngine.LogOption,string,UnityEngine.Object)
    8. 0x000001d9f058293b (Mono JIT Code) UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[])
    9. 0x000001d9fb926a46 (Mono JIT Code) UnityEngine.Logger:LogError (string,object)
    10. 0x000001d9fb9267f7 (Mono JIT Code) Unity.Services.Friends.Logger:LogError (object) (at ./Library/PackageCache/com.unity.services.friends@1.0.0-pre.1/Runtime/SDK/Logger/Logger.cs:15)
    11. 0x000001d9fb9262bb (Mono JIT Code) Unity.Services.Friends.WrappedFriendsApi:ResolveErrorWrapping (Unity.Services.Friends.Exceptions.RelationshipErrorCode,System.Exception) (at ./Library/PackageCache/com.unity.services.friends@1.0.0-pre.1/Runtime/SDK/WrappedFriendsApi.cs:395)
    12. 0x000001d9f44f6d03 (Mono JIT Code) Unity.Services.Friends.WrappedFriendsApi/<TryCatchRequest>d__26`2<TRequest_REF, TReturn_REF>:MoveNext () (at ./Library/PackageCache/com.unity.services.friends@1.0.0-pre.1/Runtime/SDK/WrappedFriendsApi.cs:341)
    13. 0x000001d94f1f672a (Mono JIT Code) System.Runtime.CompilerServices.AsyncMethodBuilderCore/MoveNextRunner:InvokeMoveNext (object)
    14. 0x000001d8debb942e (Mono JIT Code) System.Threading.ExecutionContext:RunInternal (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool)
    15. 0x000001d8debb87ab (Mono JIT Code) System.Threading.ExecutionContext:Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool)
    16. 0x000001d94f1f53eb (Mono JIT Code) System.Runtime.CompilerServices.AsyncMethodBuilderCore/MoveNextRunner:Run ()
    17. 0x000001d9f3fe9140 (Mono JIT Code) System.Threading.Tasks.AwaitTaskContinuation:InvokeAction (object)
    18. 0x000001d9f3fe8d74 (Mono JIT Code) System.Threading.Tasks.AwaitTaskContinuation:RunCallback (System.Threading.ContextCallback,object,System.Threading.Tasks.Task&)
    19. 0x000001d9f3fe88bb (Mono JIT Code) System.Threading.Tasks.SynchronizationContextAwaitTaskContinuation:Run (System.Threading.Tasks.Task,bool)
    20. 0x000001d8e02e0cc8 (Mono JIT Code) System.Threading.Tasks.Task:FinishContinuations ()
    21. 0x000001d8e02dfd63 (Mono JIT Code) System.Threading.Tasks.Task:FinishStageThree ()
    22. 0x000001d8e02de1a3 (Mono JIT Code) System.Threading.Tasks.Task:FinishStageTwo ()
    23. 0x000001d8e02dd43b (Mono JIT Code) System.Threading.Tasks.Task:Finish (bool)
    24. 0x000001d9fb9223f3 (Mono JIT Code) System.Threading.Tasks.Task:TrySetException (object)
    25. 0x000001d9fb9220ab (Mono JIT Code) System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<TResult_REF>:SetException (System.Exception)
    26. 0x000001d9fb910beb (Mono JIT Code) Unity.Services.Friends.Internal.Generated.Apis.Relationships.RelationshipsApiClient/<CreateRelationshipAsync>d__7:MoveNext () (at ./Library/PackageCache/com.unity.services.friends@1.0.0-pre.1/Runtime/Internal/Generated/Apis/RelationshipsApi.cs:126)
    27. 0x000001d94f1f672a (Mono JIT Code) System.Runtime.CompilerServices.AsyncMethodBuilderCore/MoveNextRunner:InvokeMoveNext (object)
    28. 0x000001d8debb942e (Mono JIT Code) System.Threading.ExecutionContext:RunInternal (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool)
    29. 0x000001d8debb87ab (Mono JIT Code) System.Threading.ExecutionContext:Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool)
    30. 0x000001d94f1f53eb (Mono JIT Code) System.Runtime.CompilerServices.AsyncMethodBuilderCore/MoveNextRunner:Run ()
    31. 0x000001d9f3fe9140 (Mono JIT Code) System.Threading.Tasks.AwaitTaskContinuation:InvokeAction (object)
    32. 0x000001d9f3fe8d74 (Mono JIT Code) System.Threading.Tasks.AwaitTaskContinuation:RunCallback (System.Threading.ContextCallback,object,System.Threading.Tasks.Task&)
    33. 0x000001d9f3fe88bb (Mono JIT Code) System.Threading.Tasks.SynchronizationContextAwaitTaskContinuation:Run (System.Threading.Tasks.Task,bool)
    34. 0x000001d8e02e0cc8 (Mono JIT Code) System.Threading.Tasks.Task:FinishContinuations ()
    35. 0x000001d8e02dfd63 (Mono JIT Code) System.Threading.Tasks.Task:FinishStageThree ()
    36. 0x000001d8e030475b (Mono JIT Code) System.Threading.Tasks.Task`1<TResult_REF>:TrySetResult (TResult_REF)
    37. 0x000001d9f0efaf43 (Mono JIT Code) System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<TResult_REF>:SetResult (TResult_REF)
    38. 0x000001d9f44fc013 (Mono JIT Code) Unity.Services.Friends.Internal.Generated.Http.HttpClient/<MakeRequestAsync>d__1:MoveNext () (at ./Library/PackageCache/com.unity.services.friends@1.0.0-pre.1/Runtime/Internal/Generated/Http/HttpClient.cs:41)
    39. 0x000001d94f1f672a (Mono JIT Code) System.Runtime.CompilerServices.AsyncMethodBuilderCore/MoveNextRunner:InvokeMoveNext (object)
    40. 0x000001d8debb942e (Mono JIT Code) System.Threading.ExecutionContext:RunInternal (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool)
    41. 0x000001d8debb87ab (Mono JIT Code) System.Threading.ExecutionContext:Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool)
    42. 0x000001d94f1f53eb (Mono JIT Code) System.Runtime.CompilerServices.AsyncMethodBuilderCore/MoveNextRunner:Run ()
    43. 0x000001d9f3fe9140 (Mono JIT Code) System.Threading.Tasks.AwaitTaskContinuation:InvokeAction (object)
    44. 0x000001d9f3fe8d74 (Mono JIT Code) System.Threading.Tasks.AwaitTaskContinuation:RunCallback (System.Threading.ContextCallback,object,System.Threading.Tasks.Task&)
    45. 0x000001d9f3fe88bb (Mono JIT Code) System.Threading.Tasks.SynchronizationContextAwaitTaskContinuation:Run (System.Threading.Tasks.Task,bool)
    46. 0x000001d8e02e0cc8 (Mono JIT Code) System.Threading.Tasks.Task:FinishContinuations ()
    47. 0x000001d8e02dfd63 (Mono JIT Code) System.Threading.Tasks.Task:FinishStageThree ()
    48. 0x000001d8e030475b (Mono JIT Code) System.Threading.Tasks.Task`1<TResult_REF>:TrySetResult (TResult_REF)
    49. 0x000001d9f0efaf43 (Mono JIT Code) System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<TResult_REF>:SetResult (TResult_REF)
    50. 0x000001d9f44fcabb (Mono JIT Code) Unity.Services.Friends.Internal.Generated.Http.HttpClient/<CreateWebRequestAsync>d__3:MoveNext () (at ./Library/PackageCache/com.unity.services.friends@1.0.0-pre.1/Runtime/Internal/Generated/Http/HttpClient.cs:56)
    51. 0x000001d94f1f672a (Mono JIT Code) System.Runtime.CompilerServices.AsyncMethodBuilderCore/MoveNextRunner:InvokeMoveNext (object)
    52. 0x000001d8debb942e (Mono JIT Code) System.Threading.ExecutionContext:RunInternal (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool)
    53. 0x000001d8debb87ab (Mono JIT Code) System.Threading.ExecutionContext:Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool)
    54. 0x000001d94f1f53eb (Mono JIT Code) System.Runtime.CompilerServices.AsyncMethodBuilderCore/MoveNextRunner:Run ()
    55. 0x000001d9f3fe9140 (Mono JIT Code) System.Threading.Tasks.AwaitTaskContinuation:InvokeAction (object)
    56. 0x000001d9f3fe8d74 (Mono JIT Code) System.Threading.Tasks.AwaitTaskContinuation:RunCallback (System.Threading.ContextCallback,object,System.Threading.Tasks.Task&)
    57. 0x000001d9f3fe88bb (Mono JIT Code) System.Threading.Tasks.SynchronizationContextAwaitTaskContinuation:Run (System.Threading.Tasks.Task,bool)
    58. 0x000001d8e02e0cc8 (Mono JIT Code) System.Threading.Tasks.Task:FinishContinuations ()
    59. 0x000001d8e02dfd63 (Mono JIT Code) System.Threading.Tasks.Task:FinishStageThree ()
    60. 0x000001d8e030475b (Mono JIT Code) System.Threading.Tasks.Task`1<TResult_REF>:TrySetResult (TResult_REF)
    61. 0x000001d9f0efaf43 (Mono JIT Code) System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<TResult_REF>:SetResult (TResult_REF)
    62. 0x000001d9f44fdc53 (Mono JIT Code) Unity.Services.Friends.Internal.Generated.Http.HttpClient/<CreateHttpClientResponse>d__4:MoveNext () (at ./Library/PackageCache/com.unity.services.friends@1.0.0-pre.1/Runtime/Internal/Generated/Http/HttpClient.cs:84)
    63. 0x000001d94f1f672a (Mono JIT Code) System.Runtime.CompilerServices.AsyncMethodBuilderCore/MoveNextRunner:InvokeMoveNext (object)
    64. 0x000001d8debb942e (Mono JIT Code) System.Threading.ExecutionContext:RunInternal (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool)
    65. 0x000001d8debb87ab (Mono JIT Code) System.Threading.ExecutionContext:Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool)
    66. 0x000001d94f1f53eb (Mono JIT Code) System.Runtime.CompilerServices.AsyncMethodBuilderCore/MoveNextRunner:Run ()
    67. 0x000001d9f3fe9140 (Mono JIT Code) System.Threading.Tasks.AwaitTaskContinuation:InvokeAction (object)
    68. 0x000001d9f3fe8d74 (Mono JIT Code) System.Threading.Tasks.AwaitTaskContinuation:RunCallback (System.Threading.ContextCallback,object,System.Threading.Tasks.Task&)
    69. 0x000001d9f3fe88bb (Mono JIT Code) System.Threading.Tasks.SynchronizationContextAwaitTaskContinuation:Run (System.Threading.Tasks.Task,bool)
    70. 0x000001d8e02e0cc8 (Mono JIT Code) System.Threading.Tasks.Task:FinishContinuations ()
    71. 0x000001d8e02dfd63 (Mono JIT Code) System.Threading.Tasks.Task:FinishStageThree ()
    72. 0x000001d8e030475b (Mono JIT Code) System.Threading.Tasks.Task`1<TResult_REF>:TrySetResult (TResult_REF)
    73. 0x000001d9f0efaf43 (Mono JIT Code) System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<TResult_REF>:SetResult (TResult_REF)
    74. 0x000001d9f4520e7b (Mono JIT Code) Unity.Services.Friends.Internal.Generated.Http.HttpClient/<>c__DisplayClass4_0/<<CreateHttpClientResponse>b__0>d:MoveNext () (at ./Library/PackageCache/com.unity.services.friends@1.0.0-pre.1/Runtime/Internal/Generated/Http/HttpClient.cs:81)
    75. 0x000001d94f1f672a (Mono JIT Code) System.Runtime.CompilerServices.AsyncMethodBuilderCore/MoveNextRunner:InvokeMoveNext (object)
    76. 0x000001d8debb942e (Mono JIT Code) System.Threading.ExecutionContext:RunInternal (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool)
    77. 0x000001d8debb87ab (Mono JIT Code) System.Threading.ExecutionContext:Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool)
    78. 0x000001d94f1f53eb (Mono JIT Code) System.Runtime.CompilerServices.AsyncMethodBuilderCore/MoveNextRunner:Run ()
    79. 0x000001d9f3fe9140 (Mono JIT Code) System.Threading.Tasks.AwaitTaskContinuation:InvokeAction (object)
    80. 0x000001d9f3fe8d74 (Mono JIT Code) System.Threading.Tasks.AwaitTaskContinuation:RunCallback (System.Threading.ContextCallback,object,System.Threading.Tasks.Task&)
    81. 0x000001d9f3fe88bb (Mono JIT Code) System.Threading.Tasks.SynchronizationContextAwaitTaskContinuation:Run (System.Threading.Tasks.Task,bool)
    82. 0x000001d8e02e0cc8 (Mono JIT Code) System.Threading.Tasks.Task:FinishContinuations ()
    83. 0x000001d8e02dfd63 (Mono JIT Code) System.Threading.Tasks.Task:FinishStageThree ()
    84. 0x000001d8e030475b (Mono JIT Code) System.Threading.Tasks.Task`1<TResult_REF>:TrySetResult (TResult_REF)
    85. 0x000001d9f0f157fb (Mono JIT Code) System.Threading.Tasks.TaskCompletionSource`1<TResult_REF>:TrySetResult (TResult_REF)
    86. 0x000001d9f3fe869b (Mono JIT Code) System.Threading.Tasks.TaskCompletionSource`1<TResult_REF>:SetResult (TResult_REF)
    87. 0x000001d9f45851f3 (Mono JIT Code) Unity.Services.Friends.Internal.Generated.Http.UnityWebRequestHelpers/<>c__DisplayClass0_0:<GetAwaiter>b__0 (UnityEngine.AsyncOperation) (at ./Library/PackageCache/com.unity.services.friends@1.0.0-pre.1/Runtime/Internal/Generated/Http/UnityWebRequestHelpers.cs:34)
    88. 0x000001d9f3fe842c (Mono JIT Code) UnityEngine.AsyncOperation:InvokeCompletionEvent ()
    89. 0x000001d9f66dd378 (Mono JIT Code) (wrapper runtime-invoke) object:runtime_invoke_void__this__ (object,intptr,intptr,intptr)
    90. 0x00007ff9dc400394 (mono-2.0-bdwgc) mono_jit_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/mini/mini-runtime.c:3445)
    91. 0x00007ff9dc33eb44 (mono-2.0-bdwgc) do_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/metadata/object.c:3066)
    92. 0x00007ff9dc33ecdc (mono-2.0-bdwgc) mono_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/metadata/object.c:3113)
    93. 0x00007ff62d65b134 (Unity) scripting_method_invoke
    94. 0x00007ff62d63baa4 (Unity) ScriptingInvocation::Invoke
    95. 0x00007ff62d2c40a6 (Unity) AsyncOperation::InvokeCoroutine
    96. 0x00007ff62dbdfe8c (Unity) UnityWebRequestAsyncOperation::InvokeCoroutine
    97. 0x00007ff62dbe0071 (Unity) UnityWebRequestProto<UnityWebRequestTransport,AtomicRefCounter,RedirectHelper,ResponseHelper,DownloadHandler,UploadHandler,CertificateHandler,HeaderHelper,AsyncOperation>::Job_InvokeCoroutine
    98. 0x00007ff62d277f8a (Unity) BackgroundJobQueue::ExecuteMainThreadJobs
    99. 0x00007ff62d2f1b6c (Unity) `InitPlayerLoopCallbacks'::`2'::EarlyUpdateExecuteMainThreadJobsRegistrator::Forward
    100. 0x00007ff62d2d975a (Unity) ExecutePlayerLoop
    101. 0x00007ff62d2d98e3 (Unity) ExecutePlayerLoop
    102. 0x00007ff62d2dfc45 (Unity) PlayerLoop
    103. 0x00007ff62e271bbf (Unity) PlayerLoopController::InternalUpdateScene
    104. 0x00007ff62e27e7fd (Unity) PlayerLoopController::UpdateSceneIfNeededFromMainLoop
    105. 0x00007ff62e27cbf1 (Unity) Application::TickTimer
    106. 0x00007ff62e70819a (Unity) MainMessageLoop
    107. 0x00007ff62e70cf40 (Unity) WinMain
    108. 0x00007ff62faedb5e (Unity) __scrt_common_main_seh
    109. 0x00007ffa7f9e26ad (KERNEL32) BaseThreadInitThunk
    110. 0x00007ffa8040a9f8 (ntdll) RtlUserThreadStart
    111.  
     
  5. thiagownt

    thiagownt

    Unity Technologies

    Joined:
    Jul 30, 2021
    Posts:
    22
  6. sathya

    sathya

    Joined:
    Jul 30, 2012
    Posts:
    297
    I pass the player's
    Code (CSharp):
    1. AuthenticationService.Instance.PlayerId
    .
     
  7. sathya

    sathya

    Joined:
    Jul 30, 2012
    Posts:
    297
    Noticed something. It happens when calling addfriend the second time. But on another device
    GetRequests() method returns 0 requests.
     
  8. thiagownt

    thiagownt

    Unity Technologies

    Joined:
    Jul 30, 2021
    Posts:
    22
    Have you tried using the player name and calling the AddFriendByNameAsync?

    So the send request is not returning an error? What do you get when you call a second time in the requester, it returns no errors? Have you checked existing connections and blocks?
     
  9. sathya

    sathya

    Joined:
    Jul 30, 2012
    Posts:
    297
    No I did not try using the name.
    This is the error I get when calling add friend the second time

    Code (CSharp):
    1. 2023-06-08 11:38:00.844 Add Friend 4nrXGbIsqQzB94z8y41BUcmotsyD : => member name: AddFriendAsync : => source line number: 452
    2. 2023-06-08 11:38:01.407 [Friends]: , (24409). Message: Conflict
    3. 2023-06-08 11:38:01.407  #0 0xc14d99ad (libunity.so) ? 0x0
    4. 2023-06-08 11:38:01.407  #1 0xc1a951b5 (libunity.so) ? 0x0
    5. 2023-06-08 11:38:01.407  #2 0xc117d451 (libunity.so) ? 0x0
    6. 2023-06-08 11:38:01.407  #3 0xc117d399 (libunity.so) ? 0x0
    7. 2023-06-08 11:38:01.407  #4 0xd167d70a (Unknown) ? 0x0
    8. 2023-06-08 11:38:01.407
    9. 2023-06-08 11:38:01.457 Failed to Request txhrMDKctutvqfAR7try7z8vUUaR - Unity.Services.Friends.Exceptions.RelationshipsServiceException: Conflict ---> Unity.Services.Friends.Internal.Generated.Http.HttpException`1[Unity.Services.Friends.Internal.Generated.Models.Error]: (409) HTTP/1.1 409 Conflict
    10. 2023-06-08 11:38:01.457   at Unity.Services.Friends.Internal.Generated.Http.ResponseHandler.HandleAsyncResponse (Unity.Services.Friends.Internal.Generated.Http.HttpClientResponse response, System.Collections.Generic.Dictionary`2[TKey,TValue] statusCodeToTypeMap) [0x00065] in <52b5e35aa7ee40039546362452cb35fd>:0
    11. 2023-06-08 11:38:01.457   at Unity.Services.Friends.Internal.Generated.Http.ResponseHandler.HandleAsyncResponse[T] (Unity.Services.Friends.Internal.Generated.Http.HttpClientResponse response, System.Collections.Generic.Dictionary`2[TKey,TValue] statusCodeToTypeMap) [0x00000] in <52b5e35aa7ee40039546362452cb35fd>:0
    12. 2023-06-08 11:38:01.457   at Unity.Services.Friends.Internal.Generated.Apis.Relationships.RelationshipsApiClient.CreateRelationshipAsync (Unity.Services.Friends.Internal.Generated.Relation
    13.  
     
  10. sathya

    sathya

    Joined:
    Jul 30, 2012
    Posts:
    297
    We need a provision to see the friends list in the dashboard as well. something similar to playfab