Closed OlegRa closed 3 years ago
I'm not sure this works. Using code from #347, I get the following stack error:
Unhandled exception. System.Net.Http.HttpRequestException: An error occurred while sending the request.
---> System.IO.IOException: The request was aborted.
---> System.IO.IOException: The response ended prematurely while waiting for the next frame from the server.
at System.Net.Http.Http2Connection.<ReadFrameAsync>g__ThrowMissingFrame|48_1()
at System.Net.Http.Http2Connection.ReadFrameAsync(Boolean initialFrame)
at System.Net.Http.Http2Connection.ProcessIncomingFramesAsync()
--- End of inner exception stack trace ---
at System.Net.Http.Http2Connection.ThrowRequestAborted(Exception innerException)
at System.Net.Http.Http2Connection.Http2Stream.CheckResponseBodyState()
at System.Net.Http.Http2Connection.Http2Stream.TryEnsureHeaders()
at System.Net.Http.Http2Connection.Http2Stream.ReadResponseHeadersAsync(CancellationToken cancellationToken)
at System.Net.Http.Http2Connection.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
--- End of inner exception stack trace ---
at System.Net.Http.Http2Connection.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.SendWithRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at Polly.Retry.AsyncRetryEngine.ImplementationAsync[TResult](Func`3 action, Context context, CancellationToken cancellationToken, ExceptionPredicates shouldRetryExceptionPredicates, ResultPredicates`1 shouldRetryResultPredicates, Func`5 onRetryAsync, Int32 permittedRetryCount, IEnumerable`1 sleepDurationsEnumerable, Func`4 sleepDurationProvider, Boolean continueOnCapturedContext)
at Polly.AsyncPolicy`1.ExecuteAsync(Func`3 action, Context context, CancellationToken cancellationToken, Boolean continueOnCapturedContext)
at Polly.Wrap.AsyncPolicyWrapEngine.<>c__DisplayClass2_0`1.<<ImplementationAsync>b__0>d.MoveNext()
--- End of stack trace from previous location ---
at Polly.Retry.AsyncRetryEngine.ImplementationAsync[TResult](Func`3 action, Context context, CancellationToken cancellationToken, ExceptionPredicates shouldRetryExceptionPredicates, ResultPredicates`1 shouldRetryResultPredicates, Func`5 onRetryAsync, Int32 permittedRetryCount, IEnumerable`1 sleepDurationsEnumerable, Func`4 sleepDurationProvider, Boolean continueOnCapturedContext)
at Polly.AsyncPolicy.ExecuteAsync[TResult](Func`3 action, Context context, CancellationToken cancellationToken, Boolean continueOnCapturedContext)
at Polly.Wrap.AsyncPolicyWrapEngine.ImplementationAsync[TResult](Func`3 func, Context context, CancellationToken cancellationToken, Boolean continueOnCapturedContext, IAsyncPolicy outerPolicy, IAsyncPolicy`1 innerPolicy)
at Polly.AsyncPolicy`1.ExecuteAsync(Func`3 action, Context context, CancellationToken cancellationToken, Boolean continueOnCapturedContext)
at Alpaca.Markets.ThrottleParameters.CustomHttpHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
at System.Net.Http.HttpClient.SendAsyncCore(HttpRequestMessage request, HttpCompletionOption completionOption, Boolean async, Boolean emitTelemetryStartStop, CancellationToken cancellationToken)
at Alpaca.Markets.HttpClientExtensions.callAndDeserializeAsync[TApi,TJson](HttpMessageInvoker httpClient, HttpRequestMessage request, CancellationToken cancellationToken)
at Alpaca.Markets.HttpClientExtensions.callAndDeserializeAsync[TApi,TJson](HttpMessageInvoker httpClient, HttpMethod method, Uri endpointUri, CancellationToken cancellationToken)
at Alpaca.Markets.HttpClientExtensions.GetAsync[TKeyApi,TValueApi,TKeyJson,TValueJson](HttpClient httpClient, UriBuilder uriBuilder, IEqualityComparer`1 comparer, Func`2 elementSelector, CancellationToken cancellationToken)
at Alpaca.Markets.AlpacaDataClient.GetSnapshotsAsync(IEnumerable`1 symbols, CancellationToken cancellationToken)
At least it failed inside the HTTP/2 protocol handler. I'll check that happened if you'll provide STR - exact code snippet (request data matters in this case), and the .NET/OS version/bitness information.
Snippet:
exchangeToStocks.TryGetValue(exchange, out ConcurrentBag<string> stocksOnExchange);
var x = await alpacaDataClient.GetSnapshotsAs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,FMY,FHS,FFC,ETG,EOS,ENS,ENBA,ED,ELAN,EIX,EHI,EFC,EEA,ETW,ESE,EQD.U,EPRT,ENVA,EMP,EME,DDT,DPZ,DOOR,DNP,DMYI.U,DKL,DDD,DGNR.U,DG,DEH.U,D,CWEN.A,CVEO,CTT,CTAC.U,DLX,DFP,DDF,CVI,CTOS,CTBB,CPUH,COO,CMU,CMRE,CLPR,CAS,BXC,BSBR,BOH,BSMX,BRSP,CIG.C,CFX,CCU,CCK,CCAC,CAP.U,BLND,BKN,BIGZ,CBAH,CAS.U,CANG,CAL,CACI,BXMT,BTI,BSA,BOAC.U,ATAQ,ASA,ARD,AQN,APSG.U,ATA.U,ASR,ASGN,AROC,AU,ATHN,BF.B,BEKE,BBL,BAMI,AZO,AVY,AFGB,APO,ANTM,AMR,ARLO,ICE,EURN,AA
.NET 5.0.302 / macOS 11.4; x64.
@gjtorikian After a long investigation with .NET and curl (and Google and coffee), I'm pretty sure it's an environmental issue.
I don't have the time (and will) to check how this very long URL (see #347) will work with Go or Python SDKs because it heavily depends on HTTP/2 implementations in these languages/frameworks. I'll summarize my findings here:
I'm unable to do anything with it on the SDK side. It's a server-side issue and you have to work around these problems on your side. At least until Alpaca's IT guys will configure NGNIX properly and it will eat such big requests or send the proper responses instead of dropping connection.
On my side I'll do the next before treating this one as closed:
Thanks for that. I opened an issue as well to track on the DotNet side: https://github.com/dotnet/runtime/issues/56542
The stated value in the runtime is the absolute minimum frame size, and I think DotNet should also consider accepting any size within the stated range.
Because Alpaca REST API supports HTTP/2 access we can enable it in SDK and check how stable it works.