question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

InvalidOperationException: Timeouts not supported with this stream when using BaGet

See original GitHub issue

Description

I want to install a nuget package from our BaGet server (https://github.com/ai-traders/BaGet). This fails with an InvalidOperationException: Timeouts werden in diesem Datenstrom nicht unterstützt (german windows, the error message says timeouts are not supported for this data stream). It works with the previous stable version (5.181.1)

This behaviour was observed on Windows 10 with both the full dotnet framework and the dotnet core sdk installed (latest-ish versions - let me know if the precicse versions help)

Repro steps

Please provide the steps required to reproduce the problem

  1. Create a new f# console application, add the paket bootstrapper

  2. Use this as paket.dependencies

storage: none
source https://api.nuget.org/v3/index.json
framework: auto-detect

nuget FSharp.Core

source https://baget.cloud.douglasconnect.com/v3/index.json
nuget DouglasConnect

  1. Run paket install and you should see the InvalidOperationException.

Expected behavior

The package should be downloaded and installed

Actual behavior

An exception occurs:

Paket failed with
-> Could not download DouglasConnect 6.0.6 from https://baget.cloud.douglasconnect.com/v3/package/douglasconnect/6.0.6/douglasconnect.6.0.6.nupkg.
   StackTrace:
        bei Paket.NuGet.download@853-54.Invoke(Exception _arg12)
        bei Microsoft.FSharp.Control.AsyncBuilderImpl.callA@522.Invoke(AsyncParams`1 args)
     --- Ende der Stapelüberwachung vom vorhergehenden Ort, an dem die Ausnahme ausgelöst wurde ---
        bei System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
        bei Microsoft.FSharp.Control.AsyncBuilderImpl.commit[a](AsyncImplResult`1 res)
        bei Microsoft.FSharp.Control.CancellationTokenOps.RunSynchronouslyInCurrentThread[a](CancellationToken token, FSharpAsync`1 computation)
        bei Microsoft.FSharp.Control.CancellationTokenOps.RunSynchronously[a](CancellationToken token, FSharpAsync`1 computation, FSharpOption`1 timeout)
        bei Microsoft.FSharp.Control.FSharpAsync.RunSynchronously[T](FSharpAsync`1 computation, FSharpOption`1 timeout, FSharpOption`1 cancellationToken)
        bei Microsoft.FSharp.Collections.Internal.IEnumerator.map@74.DoMoveNext(b& curr)
        bei Microsoft.FSharp.Collections.Internal.IEnumerator.MapEnumerator`1.System-Collections-IEnumerator-MoveNext()
        bei Microsoft.FSharp.Core.CompilerServices.RuntimeHelpers.takeOuter@274[T,TResult](ConcatEnumerator`2 x, Unit unitVar0)
        bei Microsoft.FSharp.Core.CompilerServices.RuntimeHelpers.takeOuter@274[T,TResult](ConcatEnumerator`2 x, Unit unitVar0)
        bei System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
        bei Microsoft.FSharp.Collections.SeqModule.ToArray[T](IEnumerable`1 source)
        bei Paket.InstallProcess.InstallIntoProjects[a](InstallerOptions options, Boolean forceTouch, DependenciesFile dependenciesFile, LockFile lockFile, FSharpList`1 projectsAndReferences, FSharpMap`2 updatedGroups)
        bei Paket.UpdateProcess.SmartInstall(DependenciesFile dependenciesFile, UpdateMode updateMode, UpdaterOptions options)
        bei <StartupCode$Paket-Core>.$PublicAPI.Install@266.Invoke(Unit unitVar0)
        bei Paket.Utils.RunInLockedAccessMode[a](String lockedFolder, FSharpFunc`2 action)
        bei Paket.Program.handleCommand@822-11.Invoke(ParseResults`1 results)
        bei Paket.Program.processWithValidationEx$cont@42[a](Boolean silent, FSharpFunc`2 commandF, a result, Unit unitVar)
        bei Paket.Program.processWithValidation[T](Boolean silent, FSharpFunc`2 validateF, FSharpFunc`2 commandF, ParseResults`1 result)
        bei Paket.Program.handleCommand(Boolean silent, Command command)
        bei Paket.Program.main()
-> InvalidOperationException: Timeouts werden in diesem Datenstrom nicht unterstützt.

Known workarounds

Switch from using paket in magic mode to using the last stable version.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:13 (8 by maintainers)

github_iconTop GitHub Comments

3reactions
forkicommented, Oct 30, 2018

ok I’m reverting

0reactions
forkicommented, Nov 14, 2018

Thanks

Read more comments on GitHub >

github_iconTop Results From Across the Web

InvalidOperationException: Timeouts are not supported on ...
1 Answer 1 · When I use FileStreamResult (stream throws error as cannot convert ITEMStreamBlock to System.IO. · Please see the modified code...
Read more >
Timeouts are not supported on this stream. #1426
Hello, I have implemented a multi file upload based on a Kendo UI component. Here is my method: [DisableAuditing] public ActionResult ...
Read more >
Memory Stream Timeout Error in Visual Studio ...
I have been working on this code for the past few months in which I am ... message stating that “timeouts are not...
Read more >
Timeouts are not supported on this stream
I am using Client 2160 (the obvious thing would be to upgrade, but can't do that ... InvalidOperationException: Timeouts are not supported on...
Read more >
Timeouts are not supported on this stream. - question
Hello, Timeouts are not supported on this stream. I am getting the error. Can anyone help?
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found