Task was Cancelled

Original Discord Post by epiczzor | 2024-11-09 21:16:35

Hey all, facing this issue while trying to talk to the avatar in Unity Editor, any help is appreciated

[Error][Character]: System.Threading.Tasks.TaskCanceledException: A task was canceled.

  at Convai.Scripts.Runtime.Core.ConvaiGRPCAPI.ProcessAudioChunk (Grpc.Core.AsyncDuplexStreamingCall`2[TRequest,TResponse] call, System.Int32 diff, System.Collections.Generic.IReadOnlyList`1[T] audioData) [0x00097] in D:\Github\vrse-builder\Assets\Convai\Scripts\Runtime\Core\ConvaiGRPCAPI.cs:481 

[Stack Trace - Method: MoveNext, at Line: 512 in File: D:\Github\vrse-builder\Assets\Convai\Scripts\Runtime\Core\ConvaiGRPCAPI.cs]


Convai.Scripts.Runtime.LoggerSystem.ConvaiLogger:LogMessage (string,Convai.Scripts.Runtime.LoggerSystem.ConvaiLogger/LogLevel,Convai.Scripts.Runtime.LoggerSystem.ConvaiLogger/LogCategory,object[]) (at Assets/Convai/Scripts/Runtime/LoggerSystem/ConvaiLogger.cs:93)

Convai.Scripts.Runtime.LoggerSystem.ConvaiLogger:Error (string,Convai.Scripts.Runtime.LoggerSystem.ConvaiLogger/LogCategory,object[]) (at Assets/Convai/Scripts/Runtime/LoggerSystem/ConvaiLogger.cs:140)

Convai.Scripts.Runtime.LoggerSystem.ConvaiLogger:Error (object,Convai.Scripts.Runtime.LoggerSystem.ConvaiLogger/LogCategory) (at Assets/Convai/Scripts/Runtime/LoggerSystem/ConvaiLogger.cs:120)

Convai.Scripts.Runtime.Core.ConvaiGRPCAPI/<ProcessAudioChunk>d__21:MoveNext () (at Assets/Convai/Scripts/Runtime/Core/ConvaiGRPCAPI.cs:512)

System.Runtime.CompilerServices.AsyncTaskMethodBuilder:Start<Convai.Scripts.Runtime.Core.ConvaiGRPCAPI/<ProcessAudioChunk>d__21> (Convai.Scripts.Runtime.Core.ConvaiGRPCAPI/<ProcessAudioChunk>d__21&)


Reply by epiczzor | 2024-11-09 21:16:43

Rest of the error:

Convai.Scripts.Runtime.Core.ConvaiGRPCAPI:ProcessAudioChunk (Grpc.Core.AsyncDuplexStreamingCall2<Service.GetResponseRequest, Service.GetResponseResponse>,int,System.Collections.Generic.IReadOnlyList1)

Convai.Scripts.Runtime.Core.ConvaiGRPCAPI/d__19:MoveNext () (at Assets/Convai/Scripts/Runtime/Core/ConvaiGRPCAPI.cs:423)

UnityEngine.UnitySynchronizationContext:ExecuteTasks ()

Reply by k3kalinix | 2024-11-09 21:18:51

What is the issue?

Reply by epiczzor | 2024-11-09 21:28:22

After I finish talking to the avatar I’m getting this error

Reply by epiczzor | 2024-11-09 21:28:33

It seems my request is not going through, so the avatar doesn’t end up replying

Reply by k3kalinix | 2024-11-09 21:31:20

It’s not really a bug. It’s just a log.
For example, when you interrupt the character, the task will be canceled. If you share a video I can understand better.

Reply by epiczzor | 2024-11-10 02:08:50

Hi, i manage to resolve this, turns out the mic on meta quest while connected over link is not always reliable, it seems I was getting a mic related issue

Reply by epiczzor | 2024-11-10 02:09:00

Thanks for your help!

Reply by k3kalinix | 2024-11-10 06:41:17

You are welcome :blush:

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.