我们有一个 .NET WorkerService 在后台运行,等待事件中心的触发器将数据推送到 API Web 服务,但我们遇到了以下问题:
\n有什么想法可能导致这种情况吗?
\n\xe2\x80\x8b\xe2\x80\x8b\xe2\x80\x8b\xe2\x80\x8bExceptionSource: "System.Net.Http", ExceptionType: "System.Threading.Tasks.TaskCanceledException: The operation was canceled. \n\nSystem.IO.IOException: Unable to read data from the transport connection: Operation canceled.\n\nSystem.Net.Sockets.SocketException (125): Operation canceled \n\nEnd of inner exception stack trace --- \nat System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken) \nat System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.GetResult(Int16 token) \nat System.Net.Security.SslStream.<FillBufferAsync>g__InternalFillBufferAsync|215_0[TReadAdapter](TReadAdapter adap, ValueTask`1 task, Int32 min, Int32 initial) \nat System.Net.Security.SslStream.ReadAsyncInternal[TReadAdapter](TReadAdapter adapter, Memory`1 buffer) \nat System.Net.Http.HttpConnection.FillAsync() \nat System.Net.Http.HttpConnection.ReadNextResponseHeaderLineAsync(Boolean foldedHeadersAllowed) \nat System.Net.Http.HttpConnection.SendAsyncCore(HttpRequestMessage request, CancellationToken cancellationToken) \n\n--- End of inner exception stack trace --- \nat …Run Code Online (Sandbox Code Playgroud) 嗨我有一个简单的行为一个相当大的数据集创建一个随机数组:
import numpy as np
import random
N=276233
L=138116
np.random.random([L,N])
Run Code Online (Sandbox Code Playgroud)
但我得到这个错误:
Traceback (most recent call last):
File "<string>", line 3 (23), in <module>
File "mtrand.pyx", line 760, in mtrand.RandomState.random_sample (numpy\random\mtrand\mtrand.c:5713)
File "mtrand.pyx", line 137, in mtrand.cont0_array (numpy\random\mtrand\mtrand.c:1300)
MemoryError
Run Code Online (Sandbox Code Playgroud)
什么是解决方案,阵列的限制是什么?