Friend requests are no longer being received by anyone

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?

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.

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

[Friends]: , (24409). Message: Conflict
Got the above error while sending a friend request.
Here is the log

[Friends]: , (24409). Message: Conflict
0x00007ff62d732abd (Unity) StackWalker::GetCurrentCallstack
0x00007ff62d737a69 (Unity) StackWalker::ShowCallstack
0x00007ff62e7018c1 (Unity) GetStacktrace
0x00007ff62edc1732 (Unity) DebugStringToFile
0x00007ff62c7432b6 (Unity) DebugLogHandler_CUSTOM_Internal_Log
0x000001d9f0582aca (Mono JIT Code) (wrapper managed-to-native) UnityEngine.DebugLogHandler:Internal_Log (UnityEngine.LogType,UnityEngine.LogOption,string,UnityEngine.Object)
0x000001d9f058293b (Mono JIT Code) UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[])
0x000001d9fb926a46 (Mono JIT Code) UnityEngine.Logger:LogError (string,object)
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)
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)
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)
0x000001d94f1f672a (Mono JIT Code) System.Runtime.CompilerServices.AsyncMethodBuilderCore/MoveNextRunner:InvokeMoveNext (object)
0x000001d8debb942e (Mono JIT Code) System.Threading.ExecutionContext:RunInternal (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool)
0x000001d8debb87ab (Mono JIT Code) System.Threading.ExecutionContext:Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool)
0x000001d94f1f53eb (Mono JIT Code) System.Runtime.CompilerServices.AsyncMethodBuilderCore/MoveNextRunner:Run ()
0x000001d9f3fe9140 (Mono JIT Code) System.Threading.Tasks.AwaitTaskContinuation:InvokeAction (object)
0x000001d9f3fe8d74 (Mono JIT Code) System.Threading.Tasks.AwaitTaskContinuation:RunCallback (System.Threading.ContextCallback,object,System.Threading.Tasks.Task&)
0x000001d9f3fe88bb (Mono JIT Code) System.Threading.Tasks.SynchronizationContextAwaitTaskContinuation:Run (System.Threading.Tasks.Task,bool)
0x000001d8e02e0cc8 (Mono JIT Code) System.Threading.Tasks.Task:FinishContinuations ()
0x000001d8e02dfd63 (Mono JIT Code) System.Threading.Tasks.Task:FinishStageThree ()
0x000001d8e02de1a3 (Mono JIT Code) System.Threading.Tasks.Task:FinishStageTwo ()
0x000001d8e02dd43b (Mono JIT Code) System.Threading.Tasks.Task:Finish (bool)
0x000001d9fb9223f3 (Mono JIT Code) System.Threading.Tasks.Task:TrySetException (object)
0x000001d9fb9220ab (Mono JIT Code) System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<TResult_REF>:SetException (System.Exception)
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)
0x000001d94f1f672a (Mono JIT Code) System.Runtime.CompilerServices.AsyncMethodBuilderCore/MoveNextRunner:InvokeMoveNext (object)
0x000001d8debb942e (Mono JIT Code) System.Threading.ExecutionContext:RunInternal (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool)
0x000001d8debb87ab (Mono JIT Code) System.Threading.ExecutionContext:Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool)
0x000001d94f1f53eb (Mono JIT Code) System.Runtime.CompilerServices.AsyncMethodBuilderCore/MoveNextRunner:Run ()
0x000001d9f3fe9140 (Mono JIT Code) System.Threading.Tasks.AwaitTaskContinuation:InvokeAction (object)
0x000001d9f3fe8d74 (Mono JIT Code) System.Threading.Tasks.AwaitTaskContinuation:RunCallback (System.Threading.ContextCallback,object,System.Threading.Tasks.Task&)
0x000001d9f3fe88bb (Mono JIT Code) System.Threading.Tasks.SynchronizationContextAwaitTaskContinuation:Run (System.Threading.Tasks.Task,bool)
0x000001d8e02e0cc8 (Mono JIT Code) System.Threading.Tasks.Task:FinishContinuations ()
0x000001d8e02dfd63 (Mono JIT Code) System.Threading.Tasks.Task:FinishStageThree ()
0x000001d8e030475b (Mono JIT Code) System.Threading.Tasks.Task`1<TResult_REF>:TrySetResult (TResult_REF)
0x000001d9f0efaf43 (Mono JIT Code) System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<TResult_REF>:SetResult (TResult_REF)
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)
0x000001d94f1f672a (Mono JIT Code) System.Runtime.CompilerServices.AsyncMethodBuilderCore/MoveNextRunner:InvokeMoveNext (object)
0x000001d8debb942e (Mono JIT Code) System.Threading.ExecutionContext:RunInternal (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool)
0x000001d8debb87ab (Mono JIT Code) System.Threading.ExecutionContext:Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool)
0x000001d94f1f53eb (Mono JIT Code) System.Runtime.CompilerServices.AsyncMethodBuilderCore/MoveNextRunner:Run ()
0x000001d9f3fe9140 (Mono JIT Code) System.Threading.Tasks.AwaitTaskContinuation:InvokeAction (object)
0x000001d9f3fe8d74 (Mono JIT Code) System.Threading.Tasks.AwaitTaskContinuation:RunCallback (System.Threading.ContextCallback,object,System.Threading.Tasks.Task&)
0x000001d9f3fe88bb (Mono JIT Code) System.Threading.Tasks.SynchronizationContextAwaitTaskContinuation:Run (System.Threading.Tasks.Task,bool)
0x000001d8e02e0cc8 (Mono JIT Code) System.Threading.Tasks.Task:FinishContinuations ()
0x000001d8e02dfd63 (Mono JIT Code) System.Threading.Tasks.Task:FinishStageThree ()
0x000001d8e030475b (Mono JIT Code) System.Threading.Tasks.Task`1<TResult_REF>:TrySetResult (TResult_REF)
0x000001d9f0efaf43 (Mono JIT Code) System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<TResult_REF>:SetResult (TResult_REF)
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)
0x000001d94f1f672a (Mono JIT Code) System.Runtime.CompilerServices.AsyncMethodBuilderCore/MoveNextRunner:InvokeMoveNext (object)
0x000001d8debb942e (Mono JIT Code) System.Threading.ExecutionContext:RunInternal (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool)
0x000001d8debb87ab (Mono JIT Code) System.Threading.ExecutionContext:Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool)
0x000001d94f1f53eb (Mono JIT Code) System.Runtime.CompilerServices.AsyncMethodBuilderCore/MoveNextRunner:Run ()
0x000001d9f3fe9140 (Mono JIT Code) System.Threading.Tasks.AwaitTaskContinuation:InvokeAction (object)
0x000001d9f3fe8d74 (Mono JIT Code) System.Threading.Tasks.AwaitTaskContinuation:RunCallback (System.Threading.ContextCallback,object,System.Threading.Tasks.Task&)
0x000001d9f3fe88bb (Mono JIT Code) System.Threading.Tasks.SynchronizationContextAwaitTaskContinuation:Run (System.Threading.Tasks.Task,bool)
0x000001d8e02e0cc8 (Mono JIT Code) System.Threading.Tasks.Task:FinishContinuations ()
0x000001d8e02dfd63 (Mono JIT Code) System.Threading.Tasks.Task:FinishStageThree ()
0x000001d8e030475b (Mono JIT Code) System.Threading.Tasks.Task`1<TResult_REF>:TrySetResult (TResult_REF)
0x000001d9f0efaf43 (Mono JIT Code) System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<TResult_REF>:SetResult (TResult_REF)
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)
0x000001d94f1f672a (Mono JIT Code) System.Runtime.CompilerServices.AsyncMethodBuilderCore/MoveNextRunner:InvokeMoveNext (object)
0x000001d8debb942e (Mono JIT Code) System.Threading.ExecutionContext:RunInternal (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool)
0x000001d8debb87ab (Mono JIT Code) System.Threading.ExecutionContext:Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool)
0x000001d94f1f53eb (Mono JIT Code) System.Runtime.CompilerServices.AsyncMethodBuilderCore/MoveNextRunner:Run ()
0x000001d9f3fe9140 (Mono JIT Code) System.Threading.Tasks.AwaitTaskContinuation:InvokeAction (object)
0x000001d9f3fe8d74 (Mono JIT Code) System.Threading.Tasks.AwaitTaskContinuation:RunCallback (System.Threading.ContextCallback,object,System.Threading.Tasks.Task&)
0x000001d9f3fe88bb (Mono JIT Code) System.Threading.Tasks.SynchronizationContextAwaitTaskContinuation:Run (System.Threading.Tasks.Task,bool)
0x000001d8e02e0cc8 (Mono JIT Code) System.Threading.Tasks.Task:FinishContinuations ()
0x000001d8e02dfd63 (Mono JIT Code) System.Threading.Tasks.Task:FinishStageThree ()
0x000001d8e030475b (Mono JIT Code) System.Threading.Tasks.Task`1<TResult_REF>:TrySetResult (TResult_REF)
0x000001d9f0efaf43 (Mono JIT Code) System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<TResult_REF>:SetResult (TResult_REF)
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)
0x000001d94f1f672a (Mono JIT Code) System.Runtime.CompilerServices.AsyncMethodBuilderCore/MoveNextRunner:InvokeMoveNext (object)
0x000001d8debb942e (Mono JIT Code) System.Threading.ExecutionContext:RunInternal (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool)
0x000001d8debb87ab (Mono JIT Code) System.Threading.ExecutionContext:Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool)
0x000001d94f1f53eb (Mono JIT Code) System.Runtime.CompilerServices.AsyncMethodBuilderCore/MoveNextRunner:Run ()
0x000001d9f3fe9140 (Mono JIT Code) System.Threading.Tasks.AwaitTaskContinuation:InvokeAction (object)
0x000001d9f3fe8d74 (Mono JIT Code) System.Threading.Tasks.AwaitTaskContinuation:RunCallback (System.Threading.ContextCallback,object,System.Threading.Tasks.Task&)
0x000001d9f3fe88bb (Mono JIT Code) System.Threading.Tasks.SynchronizationContextAwaitTaskContinuation:Run (System.Threading.Tasks.Task,bool)
0x000001d8e02e0cc8 (Mono JIT Code) System.Threading.Tasks.Task:FinishContinuations ()
0x000001d8e02dfd63 (Mono JIT Code) System.Threading.Tasks.Task:FinishStageThree ()
0x000001d8e030475b (Mono JIT Code) System.Threading.Tasks.Task`1<TResult_REF>:TrySetResult (TResult_REF)
0x000001d9f0f157fb (Mono JIT Code) System.Threading.Tasks.TaskCompletionSource`1<TResult_REF>:TrySetResult (TResult_REF)
0x000001d9f3fe869b (Mono JIT Code) System.Threading.Tasks.TaskCompletionSource`1<TResult_REF>:SetResult (TResult_REF)
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)
0x000001d9f3fe842c (Mono JIT Code) UnityEngine.AsyncOperation:InvokeCompletionEvent ()
0x000001d9f66dd378 (Mono JIT Code) (wrapper runtime-invoke) object:runtime_invoke_void__this__ (object,intptr,intptr,intptr)
0x00007ff9dc400394 (mono-2.0-bdwgc) mono_jit_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/mini/mini-runtime.c:3445)
0x00007ff9dc33eb44 (mono-2.0-bdwgc) do_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/metadata/object.c:3066)
0x00007ff9dc33ecdc (mono-2.0-bdwgc) mono_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/metadata/object.c:3113)
0x00007ff62d65b134 (Unity) scripting_method_invoke
0x00007ff62d63baa4 (Unity) ScriptingInvocation::Invoke
0x00007ff62d2c40a6 (Unity) AsyncOperation::InvokeCoroutine
0x00007ff62dbdfe8c (Unity) UnityWebRequestAsyncOperation::InvokeCoroutine
0x00007ff62dbe0071 (Unity) UnityWebRequestProto<UnityWebRequestTransport,AtomicRefCounter,RedirectHelper,ResponseHelper,DownloadHandler,UploadHandler,CertificateHandler,HeaderHelper,AsyncOperation>::Job_InvokeCoroutine
0x00007ff62d277f8a (Unity) BackgroundJobQueue::ExecuteMainThreadJobs
0x00007ff62d2f1b6c (Unity) `InitPlayerLoopCallbacks'::`2'::EarlyUpdateExecuteMainThreadJobsRegistrator::Forward
0x00007ff62d2d975a (Unity) ExecutePlayerLoop
0x00007ff62d2d98e3 (Unity) ExecutePlayerLoop
0x00007ff62d2dfc45 (Unity) PlayerLoop
0x00007ff62e271bbf (Unity) PlayerLoopController::InternalUpdateScene
0x00007ff62e27e7fd (Unity) PlayerLoopController::UpdateSceneIfNeededFromMainLoop
0x00007ff62e27cbf1 (Unity) Application::TickTimer
0x00007ff62e70819a (Unity) MainMessageLoop
0x00007ff62e70cf40 (Unity) WinMain
0x00007ff62faedb5e (Unity) __scrt_common_main_seh
0x00007ffa7f9e26ad (KERNEL32) BaseThreadInitThunk
0x00007ffa8040a9f8 (ntdll) RtlUserThreadStart

hi @sathya ,
Can you check what you are passing as parameter for the memberID?
The conflict errors I’ve found are for memberIDs that do not refer to an existing user.
https://docs.unity.com/friends/en/manual/sdk/examples/send-accept-friend-request
If you are still having issues please send a code snippet or a reproduction code.
Thanks!

I pass the player’s AuthenticationService.Instance.PlayerId.

Noticed something. It happens when calling addfriend the second time. But on another device
GetRequests() method returns 0 requests.

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?

No I did not try using the name.
This is the error I get when calling add friend the second time

2023-06-08 11:38:00.844 Add Friend 4nrXGbIsqQzB94z8y41BUcmotsyD : => member name: AddFriendAsync : => source line number: 452
2023-06-08 11:38:01.407 [Friends]: , (24409). Message: Conflict
2023-06-08 11:38:01.407  #0 0xc14d99ad (libunity.so) ? 0x0
2023-06-08 11:38:01.407  #1 0xc1a951b5 (libunity.so) ? 0x0
2023-06-08 11:38:01.407  #2 0xc117d451 (libunity.so) ? 0x0
2023-06-08 11:38:01.407  #3 0xc117d399 (libunity.so) ? 0x0
2023-06-08 11:38:01.407  #4 0xd167d70a (Unknown) ? 0x0
2023-06-08 11:38:01.407
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
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
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
2023-06-08 11:38:01.457   at Unity.Services.Friends.Internal.Generated.Apis.Relationships.RelationshipsApiClient.CreateRelationshipAsync (Unity.Services.Friends.Internal.Generated.Relation

We need a provision to see the friends list in the dashboard as well. something similar to playfab