Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash trying to use http #189

Closed
teknikal-wizard opened this issue Aug 30, 2021 · 2 comments
Closed

Crash trying to use http #189

teknikal-wizard opened this issue Aug 30, 2021 · 2 comments
Assignees
Milestone

Comments

@teknikal-wizard
Copy link

When I try to run the Clima example, I got the error

Unhandled Exception: System.AggregateException: One or more errors occurred. (Network subsystem is down) ---> System.Net.Http.HttpRequestException: Network subsystem is down ---> System.Net.Sockets.SocketException: Network subsystem is down

The board is connecting to the local network successfully (the light goes blue then green) but then I get the crash trying to request data.

A person in the Slack ('Unreal') told me this was a known issue with the network stack as they had faced it too but I couldn't see a report so I have logged it here.

Here's the full stack trace:

Unhandled Exception: System.AggregateException: One or more errors occurred. (Network subsystem is down) ---> System.Net.Http.HttpRequestException: Network subsystem is down ---> System.Net.Sockets.SocketException: Network subsystem is down
  at System.Net.Sockets.Socket..ctor (System.Net.Sockets.AddressFamily addressFamily, System.Net.Sockets.SocketType socketType, System.Net.Soc[27/08/2021 12:58:35] Meadow StdOut: ets.ProtocolType protocolType) <0xc171b2f0 + 0x0007e> in <21f99a79f55e4fb0ada6126aa016bfb7>:0 
  at System.Net.Sockets.DualSocketMultipleConnectAsync..ctor (System.Net.Sockets.SocketType socketType, System.Net.Sockets.ProtocolType protocolType) <0xc1702138 + 0x00024> in <21f99a79f55e4fb0ada6126aa016bfb7>:0 
  at System.Net.Sockets.Socket.ConnectAsync (System.Net.Sockets.SocketType[27/08/2021 12:58:35] Meadow StdOut: socketType, System.Net.Sockets.ProtocolType protocolType, System.Net.Sockets.SocketAsyncEventArgs e) <0xc1701df8 + 0x00084> in <21f99a79f55e4fb0ada6126aa016bfb7>:0 
  at System.Net.Http.ConnectHelper.ConnectAsync (System.String host, System.Int32 port, System.Threading.CancellationToken cancellationToken) <0xc16fa278 + 0x0008e> in <d3a6c6c611a644b1a852e9792f1af95b>:0 
   --- End o[27/08/2021 12:58:35] Meadow StdOut:  inner exception stack trace ---
  at System.Net.Http.ConnectHelper.ConnectAsync (System.String host, System.Int32 port, System.Threading.CancellationToken cancellationToken) <0xc16fa278 + 0x002d0> in <d3a6c6c611a644b1a852e9792f1af95b>:0 
  at System.Threading.Tasks.ValueTask`1[TResult].get_Result () <0xc1718d80 + 0x00034> in <843bd420d20a407aa10d62e4764eaf5d>:0 
  at System.Net.H[27/08/2021 12:58:35] Meadow StdOut: tp.HttpConnectionPool.CreateConnectionAsync (System.Net.Http.HttpRequestMessage request, System.Threading.CancellationToken cancellationToken) <0xc16ae3f8 + 0x00232> in <d3a6c6c611a644b1a852e9792f1af95b>:0 
  at System.Threading.Tasks.ValueTask`1[TResult].get_Result () <0xc17cc520 + 0x00034> in <843bd420d20a407aa10d62e4764eaf5d>:0 
  at System.Net.Http.HttpConnectionPool.WaitForCr[27/08/2021 12:58:35] Meadow StdOut: atedConnectionAsync (System.Threading.Tasks.ValueTask`1[TResult] creationTask) <0xc17cbdc8 + 0x0013e> in <d3a6c6c611a644b1a852e9792f1af95b>:0 
  at System.Threading.Tasks.ValueTask`1[TResult].get_Result () <0xc17cc520 + 0x00034> in <843bd420d20a407aa10d62e4764eaf5d>:0 
  at System.Net.Http.HttpConnectionPool.SendWithRetryAsync (System.Net.Http.HttpRequestMessage request, System.Bo[27/08/2021 12:58:35] Meadow StdOut: lean doRequestAuth, System.Threading.CancellationToken cancellationToken) <0xc169a970 + 0x000fa> in <d3a6c6c611a644b1a852e9792f1af95b>:0 
  at System.Net.Http.RedirectHandler.SendAsync (System.Net.Http.HttpRequestMessage request, System.Threading.CancellationToken cancellationToken) <0xc16809d0 + 0x00144> in <d3a6c6c611a644b1a852e9792f1af95b>:0 
  at System.Net.Http.HttpClient.Fin[27/08/2021 12:58:35] Meadow StdOut: shSendAsyncBuffered (System.Threading.Tasks.Task`1[TResult] sendTask, System.Net.Http.HttpRequestMessage request, System.Threading.CancellationTokenSource cts, System.Boolean disposeCts) <0xc17d1d00 + 0x0027c> in <d3a6c6c611a644b1a852e9792f1af95b>:0 
  at FSharp.Control.Tasks.TaskBuilder.bindTask[a,b] (System.Threading.Tasks.Task`1[TResult] task, Microsoft.FSharp.Core.FSharpFunc`2[27/08/2021 12:58:35] Meadow StdOut: T,TResult] continuation) <0xc17d29c8 + 0x0004a> in <5b9ee785698306f6a745038385e79e5b>:0 
  at Climate+fetchTempReadings@49-1.Invoke (System.Net.Http.HttpClient _arg1) <0xc1612b20 + 0x0006a> in <e92d0dbcb54e4203a0b4407818901646>:0 
  at FSharp.Control.Tasks.TaskBuilder+using@213[a,a].Invoke (Microsoft.FSharp.Core.Unit unitVar0) <0xc16127d8 + 0x00010> in <5b9ee785698306f6a745038385e[27/08/2021 12:58:35] Meadow StdOut: 9e5b>:0 
  at FSharp.Control.Tasks.TaskBuilder.tryFinally[a] (Microsoft.FSharp.Core.FSharpFunc`2[T,TResult] step, Microsoft.FSharp.Core.FSharpFunc`2[T,TResult] fin) <0xc1612528 + 0x00032> in <5b9ee785698306f6a745038385e79e5b>:0 
  at FSharp.Control.Tasks.TaskBuilder.using[a,a] (a disp, Microsoft.FSharp.Core.FSharpFunc`2[T,TResult] body) <0xc1611f78 + 0x0002c> in <5b9ee785698306f6a[27/08/2021 12:58:35] Meadow StdOut: 45038385e79e5b>:0 
  at Climate+fetchTempReadings@48.Invoke (Microsoft.FSharp.Core.Unit unitVar) <0xc1607b90 + 0x00030> in <e92d0dbcb54e4203a0b4407818901646>:0 
  at FSharp.Control.Tasks.TaskBuilder.run[a] (Microsoft.FSharp.Core.FSharpFunc`2[T,TResult] firstStep) <0xc1596038 + 0x0000c> in <5b9ee785698306f6a745038385e79e5b>:0 
   --- End of inner exception stack trace ---
  at Syst[27/08/2021 12:58:36] Meadow StdOut: m.Threading.Tasks.Task.ThrowIfExceptional (System.Boolean includeTaskCanceledExceptions) <0xc17db0d0 + 0x00022> in <843bd420d20a407aa10d62e4764eaf5d>:0 
  at System.Threading.Tasks.Task`1[TResult].GetResultCore (System.Boolean waitCompletionNotification) <0xc17daf48 + 0x00062> in <843bd420d20a407aa10d62e4764eaf5d>:0 
  at System.Threading.Tasks.Task`1[TResult].get_Result () <0xc17[27/08/2021 12:58:36] Meadow StdOut: aee8 + 0x0002a> in <843bd420d20a407aa10d62e4764eaf5d>:0 
  at Program+MeadowApp..ctor () <0xc0bff978 + 0x001da> in <e92d0dbcb54e4203a0b4407818901646>:0 
  at Program.main (System.String[] argv) <0xc083d3c8 + 0x00002> in <e92d0dbcb54e4203a0b4407818901646>:0 
---> (Inner Exception #0) System.Net.Http.HttpRequestException: Network subsystem is down ---> System.Net.Sockets.SocketExcep[27/08/2021 12:58:36] Meadow StdOut: ion: Network subsystem is down
  at System.Net.Sockets.Socket..ctor (System.Net.Sockets.AddressFamily addressFamily, System.Net.Sockets.SocketType socketType, System.Net.Sockets.ProtocolType protocolType) <0xc171b2f0 + 0x0007e> in <21f99a79f55e4fb0ada6126aa016bfb7>:0 
  at System.Net.Sockets.DualSocketMultipleConnectAsync..ctor (System.Net.Sockets.SocketType socketType, System.Net[27/08/2021 12:58:36] Meadow StdOut: Sockets.ProtocolType protocolType) <0xc1702138 + 0x00024> in <21f99a79f55e4fb0ada6126aa016bfb7>:0 
  at System.Net.Sockets.Socket.ConnectAsync (System.Net.Sockets.SocketType socketType, System.Net.Sockets.ProtocolType protocolType, System.Net.Sockets.SocketAsyncEventArgs e) <0xc1701df8 + 0x00084> in <21f99a79f55e4fb0ada6126aa016bfb7>:0 
  at System.Net.Http.ConnectHelper.ConnectAs[27/08/2021 12:58:36] Meadow StdOut: nc (System.String host, System.Int32 port, System.Threading.CancellationToken cancellationToken) <0xc16fa278 + 0x0008e> in <d3a6c6c611a644b1a852e9792f1af95b>:0 
   --- End of inner exception stack trace ---
  at System.Net.Http.ConnectHelper.ConnectAsync (System.String host, System.Int32 port, System.Threading.CancellationToken cancellationToken) <0xc16fa278 + 0x002d0> in <d3a6c6c[27/08/2021 12:58:36] Meadow StdOut: 11a644b1a852e9792f1af95b>:0 
  at System.Threading.Tasks.ValueTask`1[TResult].get_Result () <0xc1718d80 + 0x00034> in <843bd420d20a407aa10d62e4764eaf5d>:0 
  at System.Net.Http.HttpConnectionPool.CreateConnectionAsync (System.Net.Http.HttpRequestMessage request, System.Threading.CancellationToken cancellationToken) <0xc16ae3f8 + 0x00232> in <d3a6c6c611a644b1a852e9792f1af95b>:0 
  [27/08/2021 12:58:36] Meadow StdOut: t System.Threading.Tasks.ValueTask`1[TResult].get_Result () <0xc17cc520 + 0x00034> in <843bd420d20a407aa10d62e4764eaf5d>:0 
  at System.Net.Http.HttpConnectionPool.WaitForCreatedConnectionAsync (System.Threading.Tasks.ValueTask`1[TResult] creationTask) <0xc17cbdc8 + 0x0013e> in <d3a6c6c611a644b1a852e9792f1af95b>:0 
  at System.Threading.Tasks.ValueTask`1[TResult].get_Result () <0x[27/08/2021 12:58:36] Meadow StdOut: 17cc520 + 0x00034> in <843bd420d20a407aa10d62e4764eaf5d>:0 
  at System.Net.Http.HttpConnectionPool.SendWithRetryAsync (System.Net.Http.HttpRequestMessage request, System.Boolean doRequestAuth, System.Threading.CancellationToken cancellationToken) <0xc169[27/08/2021 12:58:36] Meadow StdOut: a970 + 0x000fa> in <d3a6c6c611a644b1a852e9792f1af95b>:0 
  at System.Net.Http.RedirectHandler.SendAsync (System.Net.Http.HttpRequestMessage request, System.Threading.CancellationToken cancellationToken) <0xc16809d0 + 0x00144> in <d3a6c6c611a644b1a852e9792f1af95b>:0 
  at System.Net.Http.HttpClient.FinishSendAsyncBuffered (System.Threading.Tasks.Task`1[TResult] sendTask, System.Net[27/08/2021 12:58:36] Meadow StdOut: Http.HttpRequestMessage request, System.Threading.CancellationTokenSource cts, System.Boolean disposeCts) <0xc17d1d00 + 0x0027c> in <d3a6c6c611a644b1a852e9792f1af95b>:0 
  at FSharp.Control.Tasks.TaskBuilder.bindTask[a,b] (System.Threading.Tasks.Task`1[TResult] task, Microsoft.FSharp.Core.FSharpFunc`2[T,TResult] continuation) <0xc17d29c8 + 0x0004a> in <5b9ee785698306f6a745038385e7[27/08/2021 12:58:36] Meadow StdOut: e5b>:0 
  at Climate+fetchTempReadings@49-1.Invoke (System.Net.Http.HttpClient _arg1) <0xc1612b20 + 0x0006a> in <e92d0dbcb54e4203a0b4407818901646>:0 
  at FSharp.Control.Tasks.TaskBuilder+using@213[a,a].Invoke (Microsoft.FSharp.Core.Unit unitVar0) <0xc16127d8 + 0x00010> in <5b9ee785698306f6a745038385e79e5b>:0 
  at FSharp.Control.Tasks.TaskBuilder.tryFinally[a] (Microsoft.FSharp.C[27/08/2021 12:58:36] Meadow StdOut: re.FSharpFunc`2[T,TResult] step, Microsoft.FSharp.Core.FSharpFunc`2[T,TResult] fin) <0xc1612528 + 0x00032> in <5b9ee785698306f6a745038385e79e5b>:0 
  at FSharp.Control.Tasks.TaskBuilder.using[a,a] (a disp, Microsoft.FSharp.Core.FSharpFunc`2[T,TResult] body) <0xc1611f78 + 0x0002c> in <5b9ee785698306f6a745038385e79e5b>:0 
  at Climate+fetchTempReadings@48.Invoke (Microsoft.FSharp.Co[27/08/2021 12:58:36] Meadow StdOut: e.Unit unitVar) <0xc1607b90 + 0x00030> in <e92d0dbcb54e4203a0b4407818901646>:0 
  at FSharp.Control.Tasks.TaskBuilder.run[a] (Microsoft.FSharp.Core.FSharpFunc`2[T,TResult] firstStep) <0xc1596038 + 0x0000c> in <5b9ee785698306f6a745038385e79e5b>:0 <---
@PureWeen
Copy link

@NevynUK I think this is the error I'm seeing with the project I sent you. Occasionally I'll get these errors but other times it'll just stop responding. If there's a way to grab any useful info when it seems to lockup let me know

@bryancostanich bryancostanich transferred this issue from WildernessLabs/Meadow.Foundation Nov 29, 2021
@bryancostanich bryancostanich added this to the RC-1 milestone Jul 3, 2022
@NevynUK
Copy link

NevynUK commented Aug 19, 2022

Closing as this is an old problem and has not been reproduced recently.

@NevynUK NevynUK closed this as completed Aug 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants