小编Arb*_*tel的帖子

无法从传输连接读取数据:操作已取消

我们有一个 .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)

.net asp.net azure asp.net-core

13
推荐指数
1
解决办法
2万
查看次数

Numpy随机内存错误

嗨我有一个简单的行为一个相当大的数据集创建一个随机数组:

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)

什么是解决方案,阵列的限制是什么?

python memory numpy

0
推荐指数
1
解决办法
2613
查看次数

标签 统计

.net ×1

asp.net ×1

asp.net-core ×1

azure ×1

memory ×1

numpy ×1

python ×1