geewallet icon indicating copy to clipboard operation
geewallet copied to clipboard

Argument Exception in Integration-Test for windows

Open parhamsaremi opened this issue 2 years ago • 7 comments

Link of the GIthubCI: https://github.com/parhamsaremi/geewallet/actions/runs/3444631179/jobs/5747438329

Unhandled Exception: System.ArgumentException: The input sequence was empty.
Parameter name: source
   at Microsoft.FSharp.Collections.SeqModule.Head[T](IEnumerable`1 source) in F:\workspace\_work\1\s\src\fsharp\FSharp.Core\seq.fs:line 1364
   at <StartupCode$NOnion>[email protected](CellNetInfo _arg34)
   at Microsoft.FSharp.Control.AsyncPrimitives.CallThenInvokeNoHijackCheck[a,b](AsyncActivation`1 ctxt, FSharpFunc`2 userCode, b result1) in F:\workspace\_work\1\s\src\fsharp\FSharp.Core\async.fs:line 416
   at <StartupCode$NOnion>[email protected](AsyncActivation`1 ctxt)
   at [email protected](AsyncActivation`1 ctxt) in F:\workspace\_work\1\s\src\fsharp\FSharp.Core\async.fs:line 589
   at <StartupCode$NOnion>[email protected](AsyncActivation`1 ctxt)
   at [email protected](AsyncActivation`1 ctxt)
   at Microsoft.FSharp.Control.Trampoline.Execute(FSharpFunc`2 firstAction) in F:\workspace\_work\1\s\src\fsharp\FSharp.Core\async.fs:line 109
--- End of stack trace from previous location where exception was thrown ---
   at Microsoft.FSharp.Control.AsyncResult`1.Commit() in F:\workspace\_work\1\s\src\fsharp\FSharp.Core\async.fs:line 349
   at Microsoft.FSharp.Control.AsyncPrimitives.RunSynchronouslyInCurrentThread[a](CancellationToken cancellationToken, FSharpAsync`1 computation) in F:\workspace\_work\1\s\src\fsharp\FSharp.Core\async.fs:line 870
   at Microsoft.FSharp.Control.AsyncPrimitives.RunSynchronously[T](CancellationToken cancellationToken, FSharpAsync`1 computation, FSharpOption`1 timeout) in F:\workspace\_work\1\s\src\fsharp\FSharp.Core\async.fs:line 890
   at Microsoft.FSharp.Control.FSharpAsync.RunSynchronously[T](FSharpAsync`1 computation, FSharpOption`1 timeout, FSharpOption`1 cancellationToken) in F:\workspace\_work\1\s\src\fsharp\FSharp.Core\async.fs:line 1153
   at GWallet.Backend.ServerManager.UpdateServersStats() in D:\a\geewallet\geewallet\src\GWallet.Backend\ServerManager.fs:line 213
   at Program.UpdateServersStats() in D:\a\geewallet\geewallet\src\GWallet.Frontend.Console\Program.fs:line 509
   at Program.main(String[] argv) in D:\a\geewallet\geewallet\src\GWallet.Frontend.Console\Program.fs:line 530

parhamsaremi avatar Nov 11 '22 12:11 parhamsaremi

This looks like a use of Seq.head in NOnion (instead of Seq.tryHead). Let's find it there.

knocte avatar Nov 11 '22 12:11 knocte

Seq.head

I just saw this. We have this in the TorGuard 🤔

parhamsaremi avatar Nov 11 '22 12:11 parhamsaremi

Let's fix it then. This should have been caught by FSharpLint so we need to file an FSharpLint bug as well.

knocte avatar Nov 11 '22 12:11 knocte

Let's fix it then. This should have been caught by FSharpLint so we need to file an FSharpLint bug as well.

Sure, I'll create a PR now.

parhamsaremi avatar Nov 11 '22 12:11 parhamsaremi

Sure, I'll create a PR now.

Is it that easy to fix? I'm guessing you need to pick Afshin's brain to know what to do when there's no head.

knocte avatar Nov 11 '22 13:11 knocte

Sure, I'll create a PR now.

Is it that easy to fix? I'm guessing you need to pick Afshin's brain to know what to do when there's no head.

Nope, I'm pretty much stcuk. I was playing with code and different solutions in the last hour.

parhamsaremi avatar Nov 11 '22 13:11 parhamsaremi

ping afshin in telegram man, he might reply

On Fri, Nov 11, 2022, 21:22 parham saremi @.***> wrote:

Sure, I'll create a PR now.

Is it that easy to fix? I'm guessing you need to pick Afshin's brain to know what to do when there's no head.

Nope, I'm pretty much stcuk. I was playing with code and different solutions in the last hour.

— Reply to this email directly, view it on GitHub https://github.com/nblockchain/geewallet/issues/186#issuecomment-1311690859, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACQ4J2IKILNQ4E5MJHW6OLWHZCC5ANCNFSM6AAAAAAR5RHXDM . You are receiving this because you commented.Message ID: @.***>

knocte avatar Nov 11 '22 13:11 knocte