Open sentry-io[bot] opened 3 weeks ago
@m3taphysics Current design of GetTextureWebRequest is supposed to return Texture or Exception only. There is no option to provide "Soft" return result without throwing an error. I'd propose to consider EnumResult
Original error is gone. Now it seems like:
Exception: CreateTextureOp: Error loading texture url: https://hd-res.alfakingdom.com/normal/23221.svg - EnumResult<IOwnedTexture2D, ImageResult>: Error: ErrorUnknownImageFormat -
DCL.WebRequests.GetTextureWebRequest+CreateTextureOp.ExecuteAsync (DCL.WebRequests.GetTextureWebRequest webRequest, System.Threading.CancellationToken ct) (at Assets/DCL/WebRequests/Texture/GetTextureWebRequest.cs:73)
Cysharp.Threading.Tasks.UniTaskCompletionSourceCore`1[TResult].GetResult (System.Int16 token) (at ./Library/PackageCache/com.cysharp.unitask@73d86259ce/Runtime/UniTaskCompletionSource.cs:244)
Cysharp.Threading.Tasks.CompilerServices.AsyncUniTask`2[TStateMachine,T].GetResult (System.Int16 token) (at ./Library/PackageCache/com.cysharp.unitask@73d86259ce/Runtime/CompilerServices/StateMachineRunner.cs:342)
Cysharp.Threading.Tasks.UniTask`1+Awaiter[T].GetResult () (at ./Library/PackageCache/com.cysharp.unitask@73d86259ce/Runtime/UniTask.cs:653)
DCL.WebRequests.WebRequestController.SendAsync[TWebRequest,TWebRequestArgs,TWebRequestOp,TResult] (DCL.WebRequests.RequestEnvelope`2[TWebRequest,TWebRequestArgs] envelope, TWebRequestOp op) (at Assets/DCL/WebRequests/WebRequestController.cs:49)
DCL.WebRequests.WebRequestController.SendAsync[TWebRequest,TWebRequestArgs,TWebRequestOp,TResult] (DCL.WebRequests.RequestEnvelope`2[TWebRequest,TWebRequestArgs] envelope, TWebRequestOp op) (at Assets/DCL/WebRequests/WebRequestController.cs:85)
Cysharp.Threading.Tasks.UniTaskCompletionSourceCore`1[TResult].GetResult (System.Int16 token) (at ./Library/PackageCache/com.cysharp.unitask@73d86259ce/Runtime/UniTaskCompletionSource.cs:244)
Cysharp.Threading.Tasks.CompilerServices.AsyncUniTask`2[TStateMachine,T].GetResult (System.Int16 token) (at ./Library/PackageCache/com.cysharp.unitask@73d86259ce/Runtime/CompilerServices/StateMachineRunner.cs:342)
Cysharp.Threading.Tasks.UniTask`1+Awaiter[T].GetResult () (at ./Library/PackageCache/com.cysharp.unitask@73d86259ce/Runtime/UniTask.cs:653)
DCL.WebRequests.DebugMetricsWebRequestController.SendAsync[TWebRequest,TWebRequestArgs,TWebRequestOp,TResult] (DCL.WebRequests.RequestEnvelope`2[TWebRequest,TWebRequestArgs] envelope, TWebRequestOp op) (at Assets/DCL/WebRequests/DebugMetricsWebRequestController.cs:34)
The flow:
Sentry Issue: [UNITY-EXPLORER-4K8] (https://decentraland.sentry.io/issues/5929284631/?referrer=github_integration)